Commit 8b18a44f authored by Sergei Golubchik's avatar Sergei Golubchik

mroonga after-merge CMakeLists.txt fixes

1. remove erroneously committed *.orig
2. fix LZ4 detection on Mac OS X and FreeBSD. Cannot do

   pkg_check_modules(LIBLZ4 liblz4)
   find_library(LIBLZ4_LIBS ... )

because find_library(X) does not do anything if X is defined (documented),
and pkg_check_modules(Y) sets Y_LIBS to "" (undocumented!)
parent 1fdf1166
This diff is collapsed.
...@@ -355,13 +355,13 @@ if(NOT ${GRN_WITH_LZ4} STREQUAL "no") ...@@ -355,13 +355,13 @@ if(NOT ${GRN_WITH_LZ4} STREQUAL "no")
if(GRN_WITH_BUNDLED_LZ4) if(GRN_WITH_BUNDLED_LZ4)
set(LIBLZ4_INCLUDE_DIRS set(LIBLZ4_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/lz4-${GRN_BUNDLED_LZ4_VERSION}/lib") "${CMAKE_CURRENT_SOURCE_DIR}/vendor/lz4-${GRN_BUNDLED_LZ4_VERSION}/lib")
set(LIBLZ4_LIBS liblz4) set(LZ4_LIBS liblz4)
else() else()
if(NOT DEFINED LIBLZ4_FOUND) if(NOT DEFINED LIBLZ4_FOUND)
pkg_check_modules(LIBLZ4 liblz4) pkg_check_modules(LIBLZ4 liblz4)
endif() endif()
if(LIBLZ4_FOUND) if(LIBLZ4_FOUND)
find_library(LIBLZ4_LIBS find_library(LZ4_LIBS
NAMES ${LIBLZ4_LIBRARIES} NAMES ${LIBLZ4_LIBRARIES}
PATHS ${LIBLZ4_LIBRARY_DIRS} PATHS ${LIBLZ4_LIBRARY_DIRS}
NO_DEFAULT_PATH) NO_DEFAULT_PATH)
......
This diff is collapsed.
...@@ -94,7 +94,7 @@ set(GRN_ALL_LIBRARIES ...@@ -94,7 +94,7 @@ set(GRN_ALL_LIBRARIES
${RT_LIBS} ${RT_LIBS}
${PTHREAD_LIBS} ${PTHREAD_LIBS}
${Z_LIBS} ${Z_LIBS}
${LIBLZ4_LIBS} ${LZ4_LIBS}
${LIBZSTD_LIBS} ${LIBZSTD_LIBS}
${MESSAGE_PACK_LIBS} ${MESSAGE_PACK_LIBS}
${DL_LIBS} ${DL_LIBS}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment