More precisely target cityjson code #4835

This commit is contained in:
Thomas Krijnen
2024-06-10 20:56:50 +02:00
parent 19933e0102
commit 74a42ba006
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1051,7 +1051,11 @@ if(BUILD_CONVERT)
target_link_libraries(IfcConvert ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${HDF5_LIBRARIES} ${USD_LIBRARIES})
if (WITH_RELATIONSHIP_VALIDATION)
set_target_properties(IfcConvert PROPERTIES COMPILE_FLAGS "-DWITH_RELATIONSHIP_VALIDATION")
set_property(TARGET IfcConvert APPEND_STRING PROPERTY COMPILE_FLAGS " -DWITH_RELATIONSHIP_VALIDATION")
endif()
if(WITH_CGAL AND CITYJSON_SUPPORT)
set_property(TARGET IfcConvert APPEND_STRING PROPERTY COMPILE_FLAGS " -DIFOPSH_WITH_CITYJSON")
endif()
if((NOT WIN32) AND BUILD_SHARED_LIBS)
+1 -1
View File
@@ -46,7 +46,7 @@
#include "../ifcparse/utils.h"
#ifdef IFOPSH_WITH_CGAL
#ifdef IFOPSH_WITH_CITYJSON
#include "./cityjson/geobim.h"
#endif