-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yongxiang Liang <[email protected]>
- Loading branch information
1 parent
8c0406d
commit 84eef7c
Showing
4 changed files
with
57 additions
and
49 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
app-i18n/libime/files/libime-1.1.3-use-c++11-for-kenlm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Backport of https://github.com/fcitx/libime/commit/95c1433500b089b0c2edbdd17720f66e6eafd5e0 | ||
|
||
--- 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters