Blob Blame History Raw
diff -rupN --no-dereference netgen-6.2.2007/cmake/SuperBuild.cmake netgen-6.2.2007-new/cmake/SuperBuild.cmake
--- netgen-6.2.2007/cmake/SuperBuild.cmake	2020-07-23 20:51:48.000000000 +0200
+++ netgen-6.2.2007-new/cmake/SuperBuild.cmake	2020-07-23 23:12:18.160198621 +0200
@@ -38,7 +38,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.2007/CMakeLists.txt netgen-6.2.2007-new/CMakeLists.txt
--- netgen-6.2.2007/CMakeLists.txt	2020-07-23 20:51:48.000000000 +0200
+++ netgen-6.2.2007-new/CMakeLists.txt	2020-07-23 23:12:18.161198621 +0200
@@ -264,7 +264,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}")
@@ -278,10 +278,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)
 
 #######################################################################