mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-16 16:00:33 +05:00
allow building netgen without submodule pybind11
This commit is contained in:
parent
339f8a1934
commit
7f753027ef
@ -274,12 +274,12 @@ endif (USE_GUI)
|
|||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
if (USE_PYTHON)
|
if (USE_PYTHON)
|
||||||
add_subdirectory(external_dependencies/pybind11)
|
|
||||||
add_definitions(-DNG_PYTHON)
|
add_definitions(-DNG_PYTHON)
|
||||||
if(BUILD_WITH_CONDA)
|
if(BUILD_WITH_CONDA)
|
||||||
find_package(pybind11 REQUIRED)
|
find_package(pybind11 REQUIRED)
|
||||||
set(PYBIND_INCLUDE_DIR PYBIND11_INCLUDE_DIR)
|
set(PYBIND_INCLUDE_DIR PYBIND11_INCLUDE_DIR)
|
||||||
else(BUILD_WITH_CONDA)
|
else(BUILD_WITH_CONDA)
|
||||||
|
add_subdirectory(external_dependencies/pybind11)
|
||||||
find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h HINTS ${PYTHON_INCLUDE_DIR})
|
find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h HINTS ${PYTHON_INCLUDE_DIR})
|
||||||
if( PYBIND_INCLUDE_DIR )
|
if( PYBIND_INCLUDE_DIR )
|
||||||
message(STATUS "Found Pybind11: ${PYBIND_INCLUDE_DIR}")
|
message(STATUS "Found Pybind11: ${PYBIND_INCLUDE_DIR}")
|
||||||
|
Loading…
Reference in New Issue
Block a user