]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Use PYTHON_EXECUTABLE variable instead of python ...
authoradam <adam>
Wed, 12 Nov 2008 17:01:39 +0000 (17:01 +0000)
committeradam <adam>
Wed, 12 Nov 2008 17:01:39 +0000 (17:01 +0000)
salome_adm/cmake_files/FindPYTHON.cmake

index 2f6bff9da9eba344e201cfd3994aaf2e456843c7..62c7e3f96b7be1a104402f31ac9a073b8f024e8c 100644 (file)
@@ -6,7 +6,7 @@ ELSE(WINDOWS)
 ENDIF(WINDOWS)
 
 EXECUTE_PROCESS(
-  COMMAND python -c "import sys; sys.stdout.write(sys.version[:3])"
+  COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write(sys.version[:3])"
   OUTPUT_VARIABLE PYTHON_VERSION
   )