mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-20 00:40:03 +01:00
cmake: add "libpam" as an alias for "pam" (#893)
This commit is contained in:
parent
bdc44ab5d6
commit
36ec73f166
1 changed files with 4 additions and 3 deletions
|
|
@ -89,12 +89,11 @@ pkg_check_modules(
|
||||||
hyprutils>=0.8.0
|
hyprutils>=0.8.0
|
||||||
sdbus-c++>=2.0.0
|
sdbus-c++>=2.0.0
|
||||||
hyprgraphics>=0.1.6)
|
hyprgraphics>=0.1.6)
|
||||||
find_library(PAM_FOUND pam)
|
find_library(PAM_FOUND NAMES pam libpam)
|
||||||
if(PAM_FOUND)
|
if(PAM_FOUND)
|
||||||
message(STATUS "Found pam")
|
|
||||||
set(PAM_LIB ${PAM_FOUND})
|
set(PAM_LIB ${PAM_FOUND})
|
||||||
else()
|
else()
|
||||||
pkg_check_modules(PAM IMPORTED_TARGET pam)
|
pkg_check_modules(PAM IMPORTED_TARGET pam libpam)
|
||||||
if(PAM_FOUND)
|
if(PAM_FOUND)
|
||||||
set(PAM_LIB PkgConfig::PAM)
|
set(PAM_LIB PkgConfig::PAM)
|
||||||
else()
|
else()
|
||||||
|
|
@ -102,6 +101,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Found pam at ${PAM_LIB}")
|
||||||
|
|
||||||
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||||
add_executable(hyprlock ${SRCFILES})
|
add_executable(hyprlock ${SRCFILES})
|
||||||
target_link_libraries(hyprlock PRIVATE ${PAM_LIB} rt Threads::Threads PkgConfig::deps
|
target_link_libraries(hyprlock PRIVATE ${PAM_LIB} rt Threads::Threads PkgConfig::deps
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue