Skip to content

Commit

Permalink
Uses PAM CMake Module
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragagarwal561994 committed Aug 18, 2016
1 parent ad07e9a commit 3390bd7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ if (${ONION_USE_XML2})
endif(${ONION_USE_XML2})

if (${ONION_USE_PAM})
find_library(PAM_LIB NAMES pam PATH ${LIBPATH})
if (PAM_LIB)
find_package(PAM)
if (PAM_FOUND)
set(PAM_ENABLED true)
message(STATUS "pam found. PAM support is compiled in in handlers.")
else (PAM_LIB)
message("pam not found. No PAM support.")
endif (PAM_LIB)
message(STATUS "PAM support is compiled in in handlers.")
else (PAM_FOUND)
message("No PAM support.")
endif (PAM_FOUND)
endif (${ONION_USE_PAM})

if (${ONION_USE_PNG})
Expand Down

0 comments on commit 3390bd7

Please sign in to comment.