From af345043af73ab4cd94d038bd19657dcaf2ef0e9 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 30 Aug 2023 17:00:15 +0200 Subject: [PATCH] add Development.Embed --- CMakeLists.txt | 2 +- cmake/SuperBuild.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4d52011..20c1ac8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,7 @@ endif() set(NG_INSTALL_SUFFIX netgen CACHE STRING "Suffix appended to install directories (project name)") if(USE_PYTHON) - find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module) + find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module Development.Embed) execute_process(COMMAND ${Python3_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1,0,''))" OUTPUT_VARIABLE PYTHON_PACKAGES_INSTALL_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) file(TO_CMAKE_PATH ${PYTHON_PACKAGES_INSTALL_DIR} PYTHON_PACKAGES_INSTALL_DIR) diff --git a/cmake/SuperBuild.cmake b/cmake/SuperBuild.cmake index d7de225c..e5049d02 100644 --- a/cmake/SuperBuild.cmake +++ b/cmake/SuperBuild.cmake @@ -181,7 +181,7 @@ if (USE_PYTHON) else( PYBIND_INCLUDE_DIR ) message(FATAL_ERROR "Could NOT find pybind11!") endif( PYBIND_INCLUDE_DIR ) - find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module) + find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module Development.Embed) set_vars(NETGEN_CMAKE_ARGS Python3_INCLUDE_DIRS