From 11f2c30f5b58de7c543ffc3e93fd508e3c8bcab3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 12 May 2015 16:35:54 +0200 Subject: Split module into a helper executable and a minimal module --- FindPAM.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 FindPAM.cmake (limited to 'FindPAM.cmake') diff --git a/FindPAM.cmake b/FindPAM.cmake new file mode 100644 index 0000000..bccdf9b --- /dev/null +++ b/FindPAM.cmake @@ -0,0 +1,15 @@ +FIND_PATH(PAM_INCLUDE_DIR security/pam_modules.h) + +IF (PAM_INCLUDE_DIR) + SET(PAM_FOUND TRUE) +ENDIF (PAM_INCLUDE_DIR) + +IF (PAM_FOUND) + IF (NOT PAM_FIND_QUIETLY) + MESSAGE(STATUS "Found PAM (include path: ${PAM_INCLUDE_DIR})") + ENDIF (NOT PAM_FIND_QUIETLY) +ELSE (PAM_FOUND) + IF (PAM_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find PAM") + ENDIF (PAM_FIND_REQUIRED) +ENDIF (PAM_FOUND) -- cgit v1.2.3