We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
IFCPARSE_STATIC_DEFINE
BUILD_SHARED_LIBS
1 parent b5c4eb3 commit 83243ecCopy full SHA for 83243ec
1 file changed
cmake/CMakeLists.txt
@@ -429,9 +429,6 @@ endforeach()
429
430
set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
431
432
-# add macro for every project: use IfcParse as static lib
433
-add_definitions(-DIFCPARSE_STATIC_DEFINE)
434
-
435
ADD_LIBRARY(IfcParse STATIC ${IFCPARSE_FILES})
436
437
IF(UNICODE_SUPPORT)
@@ -451,6 +448,9 @@ ELSE()
451
448
ADD_LIBRARY(IfcGeom STATIC ${IFCGEOM_FILES})
452
449
SET(IFCLIBS "IfcParse;IfcGeom")
453
450
SET(IFCDIRS "")
+
+ # add macro for every project: use IfcParse as static lib
+ ADD_DEFINITIONS(-DIFCPARSE_STATIC_DEFINE)
454
ENDIF()
455
456
TARGET_LINK_LIBRARIES(IfcGeom IfcParse)
0 commit comments