diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-27 12:43:24 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-19 14:26:06 +0000 |
commit | 36c81e4aaac23edee0ecfd97762e3c91d0d67f90 (patch) | |
tree | b8c1270a3e8a33005ba7c3f94e4508c7a000b1df /src/Python/FindAnacondaEnvironment.cmake | |
parent | 42ebac43aca279c5e6e9ba7fe8946e69ccc53c09 (diff) | |
download | regularization-36c81e4aaac23edee0ecfd97762e3c91d0d67f90.tar.gz regularization-36c81e4aaac23edee0ecfd97762e3c91d0d67f90.tar.bz2 regularization-36c81e4aaac23edee0ecfd97762e3c91d0d67f90.tar.xz regularization-36c81e4aaac23edee0ecfd97762e3c91d0d67f90.zip |
Finds the conda executable
Diffstat (limited to 'src/Python/FindAnacondaEnvironment.cmake')
-rw-r--r-- | src/Python/FindAnacondaEnvironment.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Python/FindAnacondaEnvironment.cmake b/src/Python/FindAnacondaEnvironment.cmake index fa4637a..6475128 100644 --- a/src/Python/FindAnacondaEnvironment.cmake +++ b/src/Python/FindAnacondaEnvironment.cmake @@ -97,7 +97,12 @@ function (findPythonForAnacondaEnvironment env) set (PYTHON_VERSION_MINOR ${_PYTHON_VERSION_MINOR} PARENT_SCOPE) set (PYTHON_VERSION_PATCH ${_PYTHON_VERSION_PATCH} PARENT_SCOPE) message("My version found " ${PYTHON_VERSION_STRING}) - + ## find conda executable + if (WIN32) + set (CONDA_EXECUTABLE ${env}/Script/conda PARENT_SCOPE) + elseif(UNIX) + set (CONDA_EXECUTABLE ${env}/bin/conda PARENT_SCOPE) + endif() endfunction() |