Skip to content

Commit 83243ec

Browse files
committed
IFCPARSE_STATIC_DEFINE only when BUILD_SHARED_LIBS is not set
1 parent b5c4eb3 commit 83243ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmake/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,6 @@ endforeach()
429429

430430
set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
431431

432-
# add macro for every project: use IfcParse as static lib
433-
add_definitions(-DIFCPARSE_STATIC_DEFINE)
434-
435432
ADD_LIBRARY(IfcParse STATIC ${IFCPARSE_FILES})
436433

437434
IF(UNICODE_SUPPORT)
@@ -451,6 +448,9 @@ ELSE()
451448
ADD_LIBRARY(IfcGeom STATIC ${IFCGEOM_FILES})
452449
SET(IFCLIBS "IfcParse;IfcGeom")
453450
SET(IFCDIRS "")
451+
452+
# add macro for every project: use IfcParse as static lib
453+
ADD_DEFINITIONS(-DIFCPARSE_STATIC_DEFINE)
454454
ENDIF()
455455

456456
TARGET_LINK_LIBRARIES(IfcGeom IfcParse)

0 commit comments

Comments
 (0)