Upgraded alpine images

This commit is contained in:
emeric
2024-04-27 15:16:03 +02:00
parent 2e24cf5fab
commit 1a9b392a71
16 changed files with 82 additions and 77 deletions
+16
View File
@@ -27,6 +27,22 @@ target_link_libraries(lmsauth PUBLIC
Boost::system
Wt::Wt
)
# PAM
option(USE_PAM "Use the PAM backend authentication API" ON)
if (USE_PAM)
find_package(PAM QUIET)
if (USE_PAM AND NOT PAM_FOUND)
message(WARNING "PAM library not found: disabling")
set(USE_PAM OFF)
endif ()
endif ()
if (USE_PAM)
message(STATUS "Using PAM authentication backend")
else ()
message(STATUS "NOT using PAM authentication backend")
endif ()
if (USE_PAM)
target_compile_options(lmsauth PRIVATE "-DLMS_SUPPORT_PAM")