Skip to content

Commit c8a58e7

Browse files
committed
Avoid using Python from virtual environment.
1 parent e21d979 commit c8a58e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ cmake_policy(SET CMP0144 NEW)
44

55
project(plugin_python CXX)
66

7+
set(Python_FIND_VIRTUALENV STANDARD)
8+
79
# find Python before include mo2-cmake, otherwise this will trigger a bunch of CMP0111
810
# due to the imported configuration mapping variables defined in mo2.cmake
911
find_package(Python ${MO2_PYTHON_VERSION} COMPONENTS Interpreter Development REQUIRED)

0 commit comments

Comments
 (0)