diff options
Diffstat (limited to 'src/Python/FindAnacondaEnvironment.cmake')
-rw-r--r-- | src/Python/FindAnacondaEnvironment.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Python/FindAnacondaEnvironment.cmake b/src/Python/FindAnacondaEnvironment.cmake index 3abb5d1..6d91dba 100644 --- a/src/Python/FindAnacondaEnvironment.cmake +++ b/src/Python/FindAnacondaEnvironment.cmake @@ -36,8 +36,12 @@ function (findPythonForAnacondaEnvironment env) - - file(TO_CMAKE_PATH ${env}/python.exe PYTHON_EXECUTABLE) + set (EXE "") + if (WIN32) + set (EXE ".exe") + endif() + + file(TO_CMAKE_PATH ${env}/python${EXE} PYTHON_EXECUTABLE) message("Found " ${PYTHON_EXECUTABLE}) ####### FROM FindPythonInterpr ######## |