From 9a69a7934e3c7e404d09cb18ae1c8a14637d9b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Tue, 29 Dec 2009 12:12:26 +0000 Subject: - Beginnings of cmake in docbook directory - Add note about "make help" - Move beginnings of packaging into its own file: CPackConfig.txt svn path=/trunk/; revision=31379 --- cmake/modules/FindPOD.cmake | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'cmake/modules/FindPOD.cmake') diff --git a/cmake/modules/FindPOD.cmake b/cmake/modules/FindPOD.cmake index 2c09ce72b1..63e3112fad 100644 --- a/cmake/modules/FindPOD.cmake +++ b/cmake/modules/FindPOD.cmake @@ -18,18 +18,6 @@ FIND_PROGRAM(POD2MAN_EXECUTABLE /sbin ) -MARK_AS_ADVANCED(POD2MAN_EXECUTABLE) - -# search pod2man -MACRO(FIND_POD2MAN) - IF(NOT POD2MAN_EXECUTABLE) - FIND_PROGRAM(POD2MAN_EXECUTABLE pod2man) - IF (NOT POD2MAN_EXECUTABLE) - MESSAGE(FATAL_ERROR "pod2man not found - aborting") - ENDIF (NOT POD2MAN_EXECUTABLE) - ENDIF(NOT POD2MAN_EXECUTABLE) -ENDMACRO(FIND_POD2MAN) - FIND_PROGRAM(POD2HTML_EXECUTABLE NAMES pod2html @@ -41,17 +29,15 @@ FIND_PROGRAM(POD2HTML_EXECUTABLE /sbin ) -MARK_AS_ADVANCED(POD2HTML_EXECUTABLE) +# handle the QUIETLY and REQUIRED arguments and set POD2HTML_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(POD2HTML DEFAULT_MSG POD2MAN_EXECUTABLE POD2HTML_EXECUTABLE) -# search pod2html -MACRO(FIND_POD2HTML) - IF(NOT POD2HTML_EXECUTABLE) - FIND_PROGRAM(POD2HTML_EXECUTABLE pod2html) - IF (NOT POD2HTML_EXECUTABLE) - MESSAGE(FATAL_ERROR "pod2html not found - aborting") - ENDIF (NOT POD2HTML_EXECUTABLE) - ENDIF(NOT POD2HTML_EXECUTABLE) -ENDMACRO(FIND_POD2HTML) +MARK_AS_ADVANCED( + POD2MAN_EXECUTABLE + POD2HTML_EXECUTABLE +) # run pod2man and pod2html MACRO(pod2manhtml _sourcefile _manext) -- cgit v1.2.1