diff --git a/wrap/CMakeLists.txt b/wrap/CMakeLists.txt index 06659b4080..d363c71613 100644 --- a/wrap/CMakeLists.txt +++ b/wrap/CMakeLists.txt @@ -43,7 +43,7 @@ install(DIRECTORY pybind11 find_package( Python ${WRAP_PYTHON_VERSION} COMPONENTS Interpreter - REQUIRED) + EXACT) # Detect virtualenv and set Pip args accordingly # https://www.scivision.dev/cmake-install-python-package/ diff --git a/wrap/cmake/GtwrapUtils.cmake b/wrap/cmake/GtwrapUtils.cmake index 9c6b141a06..b5f7912507 100644 --- a/wrap/cmake/GtwrapUtils.cmake +++ b/wrap/cmake/GtwrapUtils.cmake @@ -68,7 +68,7 @@ macro(gtwrap_get_python_version WRAP_PYTHON_VERSION) find_package( Python ${WRAP_PYTHON_VERSION} COMPONENTS Interpreter Development - EXACT REQUIRED) + EXACT) endif() endmacro()