Skip to content

Commit 826eee8

Browse files
committed
bugfix(windows): define UTF8PROC_STATIC to fix C2491 dllimport errors
1 parent 2cb846f commit 826eee8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ set(SOURCES
3333
add_library(tokenizer_lib STATIC ${SOURCES})
3434
target_include_directories(tokenizer_lib PUBLIC include third_party)
3535
target_link_libraries(tokenizer_lib onig)
36+
target_compile_definitions(tokenizer_lib PUBLIC UTF8PROC_STATIC)
3637

3738
# Executable for testing
3839
add_executable(test_main tests/test_main.cpp)

0 commit comments

Comments
 (0)