diff options
Diffstat (limited to 'Tests/FindPython/VirtualEnv/VirtualEnvDefault.cmake')
-rw-r--r-- | Tests/FindPython/VirtualEnv/VirtualEnvDefault.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPython/VirtualEnv/VirtualEnvDefault.cmake b/Tests/FindPython/VirtualEnv/VirtualEnvDefault.cmake new file mode 100644 index 0000000..020ecac --- /dev/null +++ b/Tests/FindPython/VirtualEnv/VirtualEnvDefault.cmake @@ -0,0 +1,6 @@ + +find_package (Python3 REQUIRED) + +if (NOT Python3_EXECUTABLE MATCHES "^${PYTHON3_VIRTUAL_ENV}/.+") + message (FATAL_ERROR "Fail to use virtual environment") +endif() |