2023-11-01 03:31:57 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-08-21 14:36:15 +08:00
|
|
|
index c53fda5..a6dabe6 100644
|
2023-11-01 03:31:57 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-08-21 14:36:15 +08:00
|
|
|
@@ -186,7 +186,7 @@ endif()
|
2024-02-15 15:39:09 +08:00
|
|
|
if (ENABLE_DECOMPRESSION)
|
|
|
|
# Zlib and ZSTD need to be found otherwise disable it
|
2024-08-21 14:36:15 +08:00
|
|
|
if(NOT TARGET ZLIB::ZLIB)
|
2024-02-15 15:39:09 +08:00
|
|
|
- find_package(ZLIB)
|
2024-08-21 14:36:15 +08: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)
|
|
|
|
@@ -201,7 +201,7 @@ if (ENABLE_DECOMPRESSION)
|
|
|
|
TARGET ZSTD::ZSTD
|
|
|
|
)
|
2024-02-06 09:11:53 +08:00
|
|
|
)
|
2024-08-21 14:36:15 +08:00
|
|
|
- find_package(zstd)
|
|
|
|
+ find_package(zstd CONFIG REQUIRED)
|
|
|
|
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-11-01 03:31:57 +08:00
|
|
|
endif()
|
2024-08-21 14:36:15 +08: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-11-01 03:31:57 +08:00
|
|
|
Libs: -L${libdir} -ldwarf
|
|
|
|
Cflags: -I${includedir}
|
|
|
|
+Requires.private: zlib libzstd
|
2024-08-21 14:36:15 +08:00
|
|
|
|