diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-23 13:56:36 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-23 13:56:36 +0100 |
commit | 808167b9a333e5f351d39c8a791104c1b7a08aab (patch) | |
tree | 3361d81b4ad6951971a99af3fc566c687e4fdac5 /src/Python | |
parent | dcceb4e6b0aa515d47fb54f7325983f378aa743f (diff) | |
download | regularization-808167b9a333e5f351d39c8a791104c1b7a08aab.tar.gz regularization-808167b9a333e5f351d39c8a791104c1b7a08aab.tar.bz2 regularization-808167b9a333e5f351d39c8a791104c1b7a08aab.tar.xz regularization-808167b9a333e5f351d39c8a791104c1b7a08aab.zip |
executable extension is for WIN32
Diffstat (limited to 'src/Python')
-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 ######## |