mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 18:37:49 +08:00
465dfc5e0f
* Update to 2.4.0 * Update versions * Use check, not patch, for C++17 filesystem support * Update versions * Update license * De-vendor nanoflann and nlohmann-json * Update versions * Fix nlohmann de-vendoring * Update versions
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 42cca1e..43b0ced 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -266,7 +265,7 @@ target_include_directories(${PDAL_BASE_LIB_NAME}
|
|
target_link_libraries(${PDAL_BASE_LIB_NAME}
|
|
PRIVATE
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${CMAKE_DL_LIBS}
|
|
- ${GDAL_LIBRARY}
|
|
+ ${GDAL_LIBRARIES}
|
|
${GEOTIFF_LIBRARY}
|
|
${LIBXML2_LIBRARIES}
|
|
${ZLIB_LIBRARIES}
|
|
diff --git a/cmake/zstd.cmake b/cmake/zstd.cmake
|
|
index bfaa5b2..e73ec9e 100644
|
|
--- a/cmake/zstd.cmake
|
|
+++ b/cmake/zstd.cmake
|
|
@@ -4,7 +4,14 @@
|
|
option(WITH_ZSTD
|
|
"Build support for compression/decompression with Zstd." TRUE)
|
|
if (WITH_ZSTD)
|
|
- find_package(ZSTD QUIET)
|
|
+ find_package(ZSTD NAMES zstd REQUIRED)
|
|
+ set(ZSTD_INCLUDE_DIRS "")
|
|
+ if(TARGET zstd::libzstd_static)
|
|
+ set(ZSTD_LIBRARIES zstd::libzstd_static)
|
|
+ set(ZSTD_STATIC_LIB zstd::libzstd_static)
|
|
+ else()
|
|
+ set(ZSTD_LIBRARIES zstd::libzstd_shared)
|
|
+ endif()
|
|
set_package_properties(ZSTD PROPERTIES TYPE
|
|
PURPOSE "General compression support")
|
|
if (ZSTD_FOUND)
|