mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
FindPython*: Add capability to control virtual env handling.
Fixes: #19097
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
|
||||
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()
|
||||
Reference in New Issue
Block a user