changeset 1339:a87d3288bd39

autodetect python binary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 Apr 2015 09:53:54 +0200
parents 3f4297d01a14
children 0ad4773f28b3
files CMakeLists.txt Resources/CMake/AutoGeneratedCode.cmake
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Wed Apr 01 15:14:45 2015 +0200
+++ b/CMakeLists.txt	Fri Apr 03 09:53:54 2015 +0200
@@ -55,6 +55,7 @@
 include(CheckIncludeFiles)
 include(CheckIncludeFileCXX)
 include(CheckLibraryExists)
+include(FindPythonInterp)
 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake)
 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake)
 include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake)
--- a/Resources/CMake/AutoGeneratedCode.cmake	Wed Apr 01 15:14:45 2015 +0200
+++ b/Resources/CMake/AutoGeneratedCode.cmake	Fri Apr 03 09:53:54 2015 +0200
@@ -26,7 +26,7 @@
     "${TARGET_BASE}.h"
     "${TARGET_BASE}.cpp"
     COMMAND 
-    python
+    ${PYTHON_EXECUTABLE}
     "${CMAKE_CURRENT_SOURCE_DIR}/Resources/EmbedResources.py"
     "${AUTOGENERATED_DIR}/EmbeddedResources"
     ${SCRIPT_ARGUMENTS}