2023-10-31 15:31:57 -04:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-12-04 14:23:28 -06:00
|
|
|
index 133523b4..0c754c6d 100644
|
2023-10-31 15:31:57 -04:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-12-04 14:23:28 -06:00
|
|
|
@@ -188,7 +188,7 @@ if (ENABLE_DECOMPRESSION)
|
|
|
|
#message(STATUS "In ENABLE_DECOMPRESSION setup: TRUE")
|
2024-02-15 08:39:09 +01:00
|
|
|
# Zlib and ZSTD need to be found otherwise disable it
|
2024-08-21 08:36:15 +02:00
|
|
|
if(NOT TARGET ZLIB::ZLIB)
|
2024-02-15 08:39:09 +01:00
|
|
|
- find_package(ZLIB)
|
2024-08-21 08:36:15 +02:00
|
|
|
+ find_package(ZLIB REQUIRED)
|
|
|
|
else()
|
|
|
|
# Presumably in this case, the target has been found externally but set this flag just in case
|
|
|
|
set(ZLIB_FOUND TRUE)
|
2024-12-04 14:23:28 -06:00
|
|
|
@@ -203,7 +203,7 @@ if (ENABLE_DECOMPRESSION)
|
2024-08-21 08:36:15 +02:00
|
|
|
TARGET ZSTD::ZSTD
|
|
|
|
)
|
2024-02-05 19:11:53 -06:00
|
|
|
)
|
2024-08-21 08:36:15 +02:00
|
|
|
- find_package(zstd)
|
2024-12-04 14:23:28 -06:00
|
|
|
+ find_package(zstd CONFIG REQUIRED)
|
2024-08-21 08:36:15 +02:00
|
|
|
else()
|
|
|
|
# Presumably in this case, the target has been found externally but set this flag just in case
|
|
|
|
set(zstd_FOUND TRUE)
|
|
|
|
diff --git a/src/lib/libdwarf/cmake/libdwarfConfig.cmake.in b/src/lib/libdwarf/cmake/libdwarfConfig.cmake.in
|
|
|
|
index 567bcf3..888b801 100644
|
|
|
|
--- a/src/lib/libdwarf/cmake/libdwarfConfig.cmake.in
|
|
|
|
+++ b/src/lib/libdwarf/cmake/libdwarfConfig.cmake.in
|
|
|
|
@@ -7,7 +7,7 @@ if(LIBDWARF_BUILT_WITH_ZLIB_AND_ZSTD)
|
|
|
|
find_dependency(ZLIB)
|
|
|
|
set(CMAKE_MODULE_PATH_OLD "${CMAKE_MODULE_PATH}")
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
- find_dependency(zstd)
|
|
|
|
+ find_dependency(zstd CONFIG)
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH_OLD}")
|
|
|
|
unset(CMAKE_MODULE_PATH_OLD)
|
2023-10-31 15:31:57 -04:00
|
|
|
endif()
|
2024-08-21 08:36:15 +02:00
|
|
|
diff --git a/src/lib/libdwarf/libdwarf.pc.in b/src/lib/libdwarf/libdwarf.pc.in
|
|
|
|
index 1d78dbb..3bb9178 100644
|
|
|
|
--- a/src/lib/libdwarf/libdwarf.pc.in
|
|
|
|
+++ b/src/lib/libdwarf/libdwarf.pc.in
|
|
|
|
@@ -9,4 +9,5 @@ Description: DWARF debug symbols library
|
|
|
|
Version: @PROJECT_VERSION@
|
2023-10-31 15:31:57 -04:00
|
|
|
Libs: -L${libdir} -ldwarf
|
|
|
|
Cflags: -I${includedir}
|
|
|
|
+Requires.private: zlib libzstd
|
2024-08-21 08:36:15 +02:00
|
|
|
|