mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
- Add functionality to recognize and use CONDA_PREFIX environment variable - Add tests for conda virtual environments - Fixes: #20111
7 lines
165 B
CMake
7 lines
165 B
CMake
|
|
find_package (Python3 REQUIRED)
|
|
|
|
if (NOT Python3_EXECUTABLE MATCHES "^${PYTHON3_VIRTUAL_ENV}/.+")
|
|
message (FATAL_ERROR "Fail to use virtual environment")
|
|
endif()
|