summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerlLibs.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
commitb5f656e0de6e39f0fd935203e0ef2b4231af733d (patch)
tree8b58020cca8fef8af4df6ae631fddf49e3230049 /Modules/FindPerlLibs.cmake
parente118a62709fdc84e6c5b5b8d0bb055895d206ec9 (diff)
downloadCMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.zip
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.gz
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.bz2
ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS in some of the FindXXX
modules, remove some of the extra search paths which are also searched by default Alex
Diffstat (limited to 'Modules/FindPerlLibs.cmake')
-rw-r--r--Modules/FindPerlLibs.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake
index 1cfe7ef..191ef91 100644
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -23,12 +23,7 @@ FIND_PATH(PERL_INCLUDE_PATH perl.h
${PERL_POSSIBLE_INCLUDE_PATHS})
-FIND_PROGRAM(PERL_EXECUTABLE
- NAMES perl
- PATHS
- /usr/bin
- /usr/local/bin
- )
+FIND_PROGRAM(PERL_EXECUTABLE perl )
IF(PERL_EXECUTABLE)
EXEC_PROGRAM(${PERL_EXECUTABLE}
@@ -57,6 +52,12 @@ FIND_LIBRARY(PERL_LIBRARY
PATHS ${PERL_POSSIBLE_LIB_PATHS}
)
+# handle the QUIETLY and REQUIRED arguments and set PERLLIBS_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PerlLibs PERL_LIBRARY PERL_INCLUDE_PATH)
+
+
MARK_AS_ADVANCED(
PERL_INCLUDE_PATH
PERL_EXECUTABLE