2020-01-07 04:44:46 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 42cca1e..43b0ced 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-01-12 06:56:08 +08:00
|
|
|
@@ -266,7 +265,7 @@ target_include_directories(${PDAL_BASE_LIB_NAME}
|
|
|
|
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
|
|
|
|
index bfaa5b2..e73ec9e 100644
|
|
|
|
--- 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)
|