mirror of
https://github.com/reactos/CMake.git
synced 2024-11-23 11:39:48 +00:00
Conda: Add CONDA_PREFIX as an acceptable system prefix path
This commit is contained in:
parent
cd9c3c000f
commit
50879ce412
@ -34,6 +34,9 @@ Darwin:
|
||||
OpenBSD:
|
||||
* ``ENV{LOCALBASE}``
|
||||
|
||||
Unix:
|
||||
* ``ENV{CONDA_PREFIX}`` when using a conda compiler
|
||||
|
||||
Windows:
|
||||
* ``ENV{ProgramW6432}``
|
||||
* ``ENV{ProgramFiles}``
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user