diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-05-12 20:51:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-21 15:32:36 (GMT) |
commit | 50879ce4124508546674c7d2e681fe49840a9c73 (patch) | |
tree | 3f6636b9eeae5d02f0019cbeed1cced4fd8ed39c /Modules | |
parent | cd9c3c000f7f79cc12c8787078256935f856d5a7 (diff) | |
download | CMake-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.cmake | 4 |
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. |