From a7cac5c77bcc7aa40c23bc922b5b87fda21a4965 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 17 Sep 2024 12:25:35 +0500 Subject: [PATCH] IfcWrap cmake - regenerate .py and .cxx on changes in ifcopenshell libs Previously they wouldn't be regenerated unless you edit .i files or manually remove .py/.cxx. --- src/ifcwrap/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 1c9701b8b5..337056abf6 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -68,6 +68,7 @@ SET_PROPERTY( utils/typemaps_out.i ) swig_add_library(ifcopenshell_wrapper LANGUAGE python SOURCES IfcPython.i) +SET_PROPERTY(TARGET ${SWIG_MODULE_ifcopenshell_wrapper_REAL_NAME} PROPERTY SWIG_DEPENDS ${IFCOPENSHELL_LIBRARIES}) if("$ENV{LDFLAGS}" MATCHES ".undefined.suppress") # On osx there is some state in the python dylib. With `-Wl,undefined,suppress` we can ignore the missing symbols at compile time. SWIG_LINK_LIBRARIES(ifcopenshell_wrapper ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${LIBSVGFILL})