From 7e5bd0ca830468ebe2153f0b0043e2d71ea8df62 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 5 Sep 2024 14:49:47 +0500 Subject: [PATCH] ifcwrap cmake - rebuild if .i files changed --- src/ifcwrap/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 870641f9b6..bd02576f99 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -57,6 +57,16 @@ if (WITH_CGAL) endif() SET_SOURCE_FILES_PROPERTIES(IfcPython.i PROPERTIES CPLUSPLUS ON) +# Rebuild on changes in other .i files. +SET_PROPERTY( + SOURCE IfcPython.i + PROPERTY DEPENDS + IfcGeomWrapper.i + IfcParseWrapper.i + utils/type_conversion.i + utils/typemaps_in.i + utils/typemaps_out.i +) swig_add_library(ifcopenshell_wrapper LANGUAGE python SOURCES IfcPython.i) 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.