mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
IFCPARSE_STATIC_DEFINE only when BUILD_SHARED_LIBS is not set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user