From: adam Date: Wed, 12 Nov 2008 17:01:39 +0000 (+0000) Subject: Use PYTHON_EXECUTABLE variable instead of python ... X-Git-Tag: V5_1_0rc2~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3135ee616a5e74e9c87bc4b0ae5e49fdbbd0bef0;p=modules%2Fkernel.git Use PYTHON_EXECUTABLE variable instead of python ... --- diff --git a/salome_adm/cmake_files/FindPYTHON.cmake b/salome_adm/cmake_files/FindPYTHON.cmake index 2f6bff9da..62c7e3f96 100644 --- a/salome_adm/cmake_files/FindPYTHON.cmake +++ b/salome_adm/cmake_files/FindPYTHON.cmake @@ -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 )