diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 0cbb82888a..bc6a02f4f4 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -429,9 +429,6 @@ endforeach() set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES}) -# add macro for every project: use IfcParse as static lib -add_definitions(-DIFCPARSE_STATIC_DEFINE) - ADD_LIBRARY(IfcParse STATIC ${IFCPARSE_FILES}) IF(UNICODE_SUPPORT) @@ -451,6 +448,9 @@ ELSE() ADD_LIBRARY(IfcGeom STATIC ${IFCGEOM_FILES}) SET(IFCLIBS "IfcParse;IfcGeom") SET(IFCDIRS "") + + # add macro for every project: use IfcParse as static lib + ADD_DEFINITIONS(-DIFCPARSE_STATIC_DEFINE) ENDIF() TARGET_LINK_LIBRARIES(IfcGeom IfcParse)