diff -rupN --no-dereference netgen-6.2.1910/cmake/SuperBuild.cmake netgen-6.2.1910-new/cmake/SuperBuild.cmake
--- netgen-6.2.1910/cmake/SuperBuild.cmake 2019-12-15 20:10:31.000000000 +0100
+++ netgen-6.2.1910-new/cmake/SuperBuild.cmake 2020-02-03 22:38:37.869668089 +0100
@@ -50,7 +50,7 @@ endif(NOT WIN32)
#######################################################################
if (USE_PYTHON)
- find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies/pybind11/include NO_DEFAULT_PATH)
+ find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies/pybind11/include)
set(NG_INSTALL_PYBIND ON)
if( NOT PYBIND_INCLUDE_DIR )
# if the pybind submodule is missing, try to initialize and update all submodules
diff -rupN --no-dereference netgen-6.2.1910/CMakeLists.txt netgen-6.2.1910-new/CMakeLists.txt
--- netgen-6.2.1910/CMakeLists.txt 2019-12-15 20:10:31.000000000 +0100
+++ netgen-6.2.1910-new/CMakeLists.txt 2020-02-03 22:38:37.870668086 +0100
@@ -278,7 +278,7 @@ else()
endif()
if (USE_PYTHON)
- add_subdirectory(external_dependencies/pybind11)
+ include(cmake/pybind11Tools.cmake)
find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h HINTS ${PYTHON_INCLUDE_DIR})
if( PYBIND_INCLUDE_DIR )
message(STATUS "Found Pybind11: ${PYBIND_INCLUDE_DIR}")
@@ -292,10 +292,6 @@ if (USE_PYTHON)
target_link_libraries(netgen_python INTERFACE ${PYTHON_LIBRARIES})
endif()
- if(NG_INSTALL_PYBIND)
- install(DIRECTORY ${PYBIND_INCLUDE_DIR}/pybind11 DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel)
- install(FILES ${PYBIND_INCLUDE_DIR}/../LICENSE DESTINATION ${NG_INSTALL_DIR_INCLUDE}/pybind11 COMPONENT netgen_devel)
- endif(NG_INSTALL_PYBIND)
endif (USE_PYTHON)
#######################################################################