1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-17 15:32:10 +08:00
Files
CMake/Tests/FindPython/VirtualEnv/VirtualEnvStandard.cmake
2019-04-03 09:16:17 +02:00

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()