mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Merge branch 'cmake_include_pybind11' into 'master'
include pybind11 subdir in cmake See merge request ngsolve/netgen!541
This commit is contained in:
commit
ddc8282318
@ -305,17 +305,10 @@ endif()
|
|||||||
|
|
||||||
if (USE_PYTHON)
|
if (USE_PYTHON)
|
||||||
if (PREFER_SYSTEM_PYBIND11)
|
if (PREFER_SYSTEM_PYBIND11)
|
||||||
find_package(pybind11 CONFIG)
|
|
||||||
endif()
|
|
||||||
if (pybind11_FOUND)
|
|
||||||
set(NG_INSTALL_PYBIND OFF)
|
set(NG_INSTALL_PYBIND OFF)
|
||||||
|
find_package(pybind11 CONFIG REQUIRED)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(external_dependencies/pybind11)
|
add_subdirectory(external_dependencies/pybind11)
|
||||||
if (pybind11_INCLUDE_DIR)
|
|
||||||
message(STATUS "Found Pybind11: ${pybind11_INCLUDE_DIR}")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Could NOT find pybind11!")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(netgen_python INTERFACE ${pybind11_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
|
target_include_directories(netgen_python INTERFACE ${pybind11_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
|
||||||
|
Loading…
Reference in New Issue
Block a user