mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 03:27:50 +08:00
17 lines
626 B
Diff
17 lines
626 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b2634da..e43b041 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -605,7 +605,10 @@ IF(ENABLE_ZSTD)
|
|
ENDIF (ZSTD_INCLUDE_DIR)
|
|
|
|
FIND_PATH(ZSTD_INCLUDE_DIR zstd.h)
|
|
- FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd libzstd)
|
|
+ FIND_LIBRARY(ZSTD_LIBRARY_DEBUG NAMES zstdd libzstdd)
|
|
+ FIND_LIBRARY(ZSTD_LIBRARY_RELEASE NAMES zstd libzstd)
|
|
+ INCLUDE(SelectLibraryConfigurations)
|
|
+ SELECT_LIBRARY_CONFIGURATIONS(ZSTD)
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZSTD DEFAULT_MSG ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
|
|
ELSE(ENABLE_ZSTD)
|