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 ab83d0d commit a6d570aCopy full SHA for a6d570a
1 file changed
CMakeLists.txt
@@ -93,11 +93,16 @@ find_library(PAM_FOUND NAMES pam libpam)
93
if(PAM_FOUND)
94
set(PAM_LIB ${PAM_FOUND})
95
else()
96
- pkg_check_modules(PAM IMPORTED_TARGET pam libpam)
+ pkg_check_modules(PAM IMPORTED_TARGET libpam)
97
98
set(PAM_LIB PkgConfig::PAM)
99
100
- message(FATAL_ERROR "The required library libpam was not found.")
+ pkg_check_modules(PAM IMPORTED_TARGET pam)
101
+ if(PAM_FOUND)
102
+ set(PAM_LIB PkgConfig::PAM)
103
+ else()
104
+ message(FATAL_ERROR "The required library libpam was not found.")
105
+ endif()
106
endif()
107
108
0 commit comments