2020-01-07 04:44:46 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-05-09 09:28:15 +08:00
|
|
|
index 1705a8426..248edcd38 100644
|
2020-01-07 04:44:46 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-05-09 09:28:15 +08:00
|
|
|
@@ -269,7 +269,7 @@ target_link_libraries(${PDAL_BASE_LIB_NAME}
|
2020-01-07 04:44:46 +08:00
|
|
|
PRIVATE
|
2022-01-12 06:56:08 +08:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2022-05-07 07:30:21 +08:00
|
|
|
${CMAKE_DL_LIBS}
|
2022-01-12 06:56:08 +08:00
|
|
|
- ${GDAL_LIBRARY}
|
|
|
|
+ ${GDAL_LIBRARIES}
|
|
|
|
${GEOTIFF_LIBRARY}
|
|
|
|
${LIBXML2_LIBRARIES}
|
2022-05-07 07:30:21 +08:00
|
|
|
${ZLIB_LIBRARIES}
|
2022-01-12 06:56:08 +08:00
|
|
|
diff --git a/cmake/zstd.cmake b/cmake/zstd.cmake
|
2023-05-09 09:28:15 +08:00
|
|
|
index dfe3dc024..42a78d646 100644
|
2022-01-12 06:56:08 +08:00
|
|
|
--- a/cmake/zstd.cmake
|
|
|
|
+++ b/cmake/zstd.cmake
|
2022-05-07 07:30:21 +08:00
|
|
|
@@ -4,7 +4,14 @@
|
2022-01-12 06:56:08 +08:00
|
|
|
option(WITH_ZSTD
|
|
|
|
"Build support for compression/decompression with Zstd." TRUE)
|
|
|
|
if (WITH_ZSTD)
|
|
|
|
- find_package(ZSTD QUIET)
|
2022-05-07 07:30:21 +08:00
|
|
|
+ find_package(ZSTD NAMES zstd REQUIRED)
|
2022-01-12 06:56:08 +08:00
|
|
|
+ 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)
|