IFCPARSE_STATIC_DEFINE only when BUILD_SHARED_LIBS is not set

This commit is contained in:
Thomas Krijnen
2016-05-29 14:18:18 +02:00
parent b5c4eb3b6f
commit 83243ec514
+3 -3
View File
@@ -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)