diff --git a/src/utf/CMakeLists.txt b/src/utf/CMakeLists.txt index a49dc9ac8..5935c7dc5 100644 --- a/src/utf/CMakeLists.txt +++ b/src/utf/CMakeLists.txt @@ -2,7 +2,11 @@ project(meta-utf) add_subdirectory(tools) -add_library(meta-utf SHARED segmenter.cpp transformer.cpp utf.cpp) +if (META_STATIC_UTF) + add_library(meta-utf STATIC segmenter.cpp transformer.cpp utf.cpp) +else() + add_library(meta-utf SHARED segmenter.cpp transformer.cpp utf.cpp) +endif() target_link_libraries(meta-utf PUBLIC meta-definitions) target_link_libraries(meta-utf PRIVATE ${ICU_LIBRARIES}) target_include_directories(meta-utf PRIVATE SYSTEM ${ICU_INCLUDE_DIRS})