summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonInterp.cmake
diff options
context:
space:
mode:
authorBjörn Ricks <bjoern.ricks@intevation.de>2011-08-23 07:36:17 (GMT)
committerBjörn Ricks <bjoern.ricks@intevation.de>2011-08-23 07:52:35 (GMT)
commit1c2508a569da51041db7345e0c9eb41aa6aaefd9 (patch)
tree2431d51d9dcb41a69f679a262e2c71fb4f2072b3 /Modules/FindPythonInterp.cmake
parentd1795002956f8da746077fffb1c2aa0262063db2 (diff)
downloadCMake-1c2508a569da51041db7345e0c9eb41aa6aaefd9.zip
CMake-1c2508a569da51041db7345e0c9eb41aa6aaefd9.tar.gz
CMake-1c2508a569da51041db7345e0c9eb41aa6aaefd9.tar.bz2
Use FIND_PACKAGE_HANDLE_STANDARD_ARGS second mode
Using the second mode of FIND_PACKAGE_HANDLE_STANDARD_ARGS allows for checking the version number. Now a user can require a minimum version of the python interpreter with find_package(PythonInterp VERSION)
Diffstat (limited to 'Modules/FindPythonInterp.cmake')
-rw-r--r--Modules/FindPythonInterp.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
index 7acf7be..a10ec23 100644
--- a/Modules/FindPythonInterp.cmake
+++ b/Modules/FindPythonInterp.cmake
@@ -61,6 +61,6 @@ endif()
# handle the QUIETLY and REQUIRED arguments and set PYTHONINTERP_FOUND to TRUE if
# all listed variables are TRUE
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp DEFAULT_MSG PYTHON_EXECUTABLE)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp REQUIRED_VARS PYTHON_EXECUTABLE VERSION_VAR PYTHON_VERSION_STRING)
mark_as_advanced(PYTHON_EXECUTABLE)