We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecd4f1 commit 33200e7Copy full SHA for 33200e7
components/core/cmake/Modules/FindBZip2.cmake
@@ -34,6 +34,15 @@ endif()
34
find_package(PkgConfig)
35
pkg_check_modules(bzip2_PKGCONF QUIET "${bzip2_PKGCONFIG_NAME}")
36
37
+# Manually set package finding hints in case of failure
38
+if(NOT bzip2_PKGCONF_FOUND)
39
+ message(WARNING "Cannot find package config for ${bzip2_PKGCONFIG_NAME}")
40
+ if(DEFINED BZip2_ROOT)
41
+ set(bzip2_PKGCONF_INCLUDEDIR "${BZip2_ROOT}/include")
42
+ set(bzip2_PKGCONF_LIBDIR "${BZip2_ROOT}/lib")
43
+ endif()
44
+endif()
45
+
46
# Set include directory
47
find_path(BZip2_INCLUDE_DIR ${bzip2_HEADER}
48
HINTS ${bzip2_PKGCONF_INCLUDEDIR}
0 commit comments