You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
800 B
18 lines
800 B
Backport of https://github.com/fcitx/libime/commit/95c1433500b089b0c2edbdd17720f66e6eafd5e0
|
|
|
|
Backport upstream commit 95c1433 in order to fix building with libcxx
|
|
|
|
--- a/src/libime/core/CMakeLists.txt
|
|
+++ b/src/libime/core/CMakeLists.txt
|
|
@@ -13,7 +13,9 @@ add_library(kenlm STATIC ${KENLM_SRCS})
|
|
target_include_directories(kenlm PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/kenlm>)
|
|
target_compile_definitions(kenlm PUBLIC -DKENLM_MAX_ORDER=3 PRIVATE -DNDEBUG)
|
|
target_link_libraries(kenlm PUBLIC Boost::boost PkgConfig::ZSTD)
|
|
-set_target_properties(kenlm PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
+set_target_properties(kenlm PROPERTIES
|
|
+ CXX_STANDARD 11
|
|
+ POSITION_INDEPENDENT_CODE ON)
|
|
|
|
if(UNIX)
|
|
check_library_exists(rt clock_gettime "clock_gettime from librt" HAVE_CLOCKGETTIME_RT)
|