mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
- Add functionality to recognize and use CONDA_PREFIX environment variable - Add tests for conda virtual environments - Fixes: #20111
8 lines
208 B
CMake
8 lines
208 B
CMake
|
|
set (Python3_FIND_VIRTUALENV STANDARD)
|
|
find_package (Python3 REQUIRED)
|
|
|
|
if (Python3_EXECUTABLE MATCHES "^${PYTHON3_VIRTUAL_ENV}/.+")
|
|
message (FATAL_ERROR "Python3 virtual env unexpectedly found.")
|
|
endif()
|