diff options
author | Peng Wu <alexepico@gmail.com> | 2016-11-29 16:18:41 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-11-29 16:18:41 +0800 |
commit | 8696a30979374db704aec8e7251489a821be111e (patch) | |
tree | f998a5b28caf1dac0be0911500b331d048b7c26c /CMakeLists.txt | |
parent | e71cc7443ff93e00bb34ce01bbd3440531b542ed (diff) | |
download | libpinyin-8696a30979374db704aec8e7251489a821be111e.tar.gz libpinyin-8696a30979374db704aec8e7251489a821be111e.tar.xz libpinyin-8696a30979374db704aec8e7251489a821be111e.zip |
fixes cmake files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index feff90f..be6dc11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,8 @@ if (DB_FOUND) include_directories ( ${DB_INCLUDE_DIR} ) SET (LIBS ${LIBS} ${DB_LIBRARIES}) SET (HAVE_BERKELEY_DB 1) + SET (CMAKE_CXX_LINK_EXECUTABLE + "${CMAKE_CXX_LINK_EXECUTABLE} ${LIBS}") endif (DB_FOUND) if (NOT HAVE_BERKELEY_DB) @@ -81,6 +83,8 @@ if (NOT HAVE_BERKELEY_DB) include_directories ( ${KyotoCabinet_INCLUDE_PATH} ) SET (LIBS ${LIBS} ${KyotoCabinet_LIBRARY}) SET (HAVE_KYOTO_CABINET 1) + SET (CMAKE_CXX_LINK_EXECUTABLE + "${CMAKE_CXX_LINK_EXECUTABLE} ${LIBS}") endif (KyotoCabinet_FOUND) endif (NOT HAVE_BERKELEY_DB) |