From f382090ab52dca050950e2f1c3c00cac9fad9113 Mon Sep 17 00:00:00 2001 From: Christoph Moench-Tegeder Date: Sat, 20 Dec 2025 23:04:27 +0100 Subject: [PATCH] add pybind11 include path in MeshPart CMakeLists This could be a return of parts of commit f384c34f67a3544dcabf23389a6089f897340c8b Without these, the rc1 build fails on FreeBSD with "pybind11/eigen.h not found" - the layout of the pybind11 directories on the BSDs may differ somewhat from your typical Linux distribution. But then, on Linux, this additional include path will just point to an already-known location. --- src/Mod/MeshPart/App/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/MeshPart/App/CMakeLists.txt b/src/Mod/MeshPart/App/CMakeLists.txt index 85fd4b24ce..fa165f5619 100644 --- a/src/Mod/MeshPart/App/CMakeLists.txt +++ b/src/Mod/MeshPart/App/CMakeLists.txt @@ -18,6 +18,7 @@ target_include_directories( PRIVATE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src + ${pybind11_INCLUDE_DIR} ) target_include_directories( @@ -123,6 +124,7 @@ if (BUILD_FLAT_MESH) add_library(flatmesh SHARED ${FLATMESH_SRCS}) SET_PYTHON_PREFIX_SUFFIX(flatmesh) + target_include_directories(flatmesh PRIVATE ${pybind11_INCLUDE_DIR}) target_link_libraries(flatmesh ${Python3_LIBRARIES} ${MeshPart_LIBS}) SET_BIN_DIR(flatmesh flatmesh /Mod/MeshPart)