summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-05-12 20:51:23 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-21 15:32:36 (GMT)
commit50879ce4124508546674c7d2e681fe49840a9c73 (patch)
tree3f6636b9eeae5d02f0019cbeed1cced4fd8ed39c /Modules
parentcd9c3c000f7f79cc12c8787078256935f856d5a7 (diff)
downloadCMake-50879ce4124508546674c7d2e681fe49840a9c73.zip
CMake-50879ce4124508546674c7d2e681fe49840a9c73.tar.gz
CMake-50879ce4124508546674c7d2e681fe49840a9c73.tar.bz2
Conda: Add CONDA_PREFIX as an acceptable system prefix path
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/UnixPaths.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
index 7fe64cb..b9381c3 100644
--- a/Modules/Platform/UnixPaths.cmake
+++ b/Modules/Platform/UnixPaths.cmake
@@ -95,6 +95,10 @@ unset(_cmake_sysroot_compile)
# synchronized
if(CMAKE_COMPILER_SYSROOT)
list(PREPEND CMAKE_SYSTEM_PREFIX_PATH "${CMAKE_COMPILER_SYSROOT}")
+
+ if(DEFINED ENV{CONDA_PREFIX} AND EXISTS "$ENV{CONDA_PREFIX}")
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH "$ENV{CONDA_PREFIX}")
+ endif()
endif()
# Enable use of lib32 and lib64 search path variants by default.