diff --git a/CMakeLists.txt b/CMakeLists.txt index bb7ba4ee..bdec70f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,9 @@ message(STATUS '${SKBUILD_PROJECT_NAME}') set(CMAKE_VERBOSE_MAKEFILE ON) -if(SKBUILD) - set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}") - set(Python_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}") - set(Python_LIBRARY "${PYTHON_LIBRARY}") -endif() +set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}") +set(Python_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}") +set(Python_LIBRARY "${PYTHON_LIBRARY}") find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)