Skip to content

Commit

Permalink
Merge pull request #736 from glotzerlab/fix-rtd-builds
Browse files Browse the repository at this point in the history
Detect conda environments more reliably
  • Loading branch information
tommy-waltmann authored Mar 29, 2021
2 parents 8151715 + 860fde7 commit b70318c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freud/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ endif()
# Detect when building against a conda environment set the _using_conda variable
# for use both in this file and in the parent
get_filename_component(_python_bin_dir ${PYTHON_EXECUTABLE} DIRECTORY)
if(EXISTS "${_python_bin_dir}/conda" OR DEFINED ENV{CONDA_EXE})
message("-- Detected conda python, setting INSTALL_RPATH_USE_LINK_PATH")
if(EXISTS "${_python_bin_dir}/../conda-meta")
message("-- Detected conda environment, setting INSTALL_RPATH_USE_LINK_PATH")
set(_using_conda On)
set(_using_conda
On
Expand Down

0 comments on commit b70318c

Please sign in to comment.