diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-27 12:43:24 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2017-10-27 12:43:24 +0100 |
commit | 6ed4ddcfd133085688b53ad17fd7f595b49cd60d (patch) | |
tree | e72f1674802815d65f9c776db9f8603871e987d8 /src/Python/FindAnacondaEnvironment.cmake | |
parent | a9ee40156a7ad6ae4fcb9e07aea99914f6c7f7ff (diff) | |
download | regularization-6ed4ddcfd133085688b53ad17fd7f595b49cd60d.tar.gz regularization-6ed4ddcfd133085688b53ad17fd7f595b49cd60d.tar.bz2 regularization-6ed4ddcfd133085688b53ad17fd7f595b49cd60d.tar.xz regularization-6ed4ddcfd133085688b53ad17fd7f595b49cd60d.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() |