Commit 47361709 authored by Marc Dequènes (Duck)'s avatar Marc Dequènes (Duck)

[fix] correct cmake rules to fail when PAM is missing and ENABLE_PAM is On (closes #425)

parent afafb396
......@@ -78,6 +78,8 @@ IF(ENABLE_MINBIF)
IF (PAM_FOUND)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_PAM")
ELSE (PAM_FOUND)
MESSAGE(FATAL_ERROR "Dependencies for PAM were not met. Install libpam-dev. Or to disable PAM support, run 'make ENABLE_PAM=0'")
ENDIF (PAM_FOUND)
ENDIF (ENABLE_PAM)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment