2018-05-22 19:43:24 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2019-02-08 06:42:50 +08:00
|
|
|
index 80871bc9..2a16dc70 100644
|
2018-05-22 19:43:24 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2019-02-08 06:42:50 +08:00
|
|
|
@@ -517,7 +517,10 @@ IF(ENABLE_LZ4)
|
|
|
|
ENDIF (LZ4_INCLUDE_DIR)
|
|
|
|
|
|
|
|
FIND_PATH(LZ4_INCLUDE_DIR lz4.h)
|
|
|
|
- FIND_LIBRARY(LZ4_LIBRARY NAMES lz4 liblz4)
|
|
|
|
+ FIND_LIBRARY(LZ4_LIBRARY_DEBUG NAMES lz4d liblz4d)
|
|
|
|
+ FIND_LIBRARY(LZ4_LIBRARY_RELEASE NAMES lz4 liblz4)
|
|
|
|
+ INCLUDE(SelectLibraryConfigurations)
|
|
|
|
+ SELECT_LIBRARY_CONFIGURATIONS(LZ4)
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LZ4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR)
|
|
|
|
ELSE(ENABLE_LZ4)
|