@@ -452,7 +452,7 @@ endforeach()
452452
453453set (IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES} )
454454
455- add_library (IfcParse STATIC ${IFCPARSE_FILES} )
455+ add_library (IfcParse ${IFCPARSE_FILES} )
456456set_target_properties (IfcParse PROPERTIES COMPILE_FLAGS -DIfcParse_EXPORTS )
457457
458458IF (UNICODE_SUPPORT)
@@ -463,13 +463,17 @@ ENDIF()
463463file (GLOB IFCGEOM_H_FILES ../src/ifcgeom/*.h )
464464file (GLOB IFCGEOM_CPP_FILES ../src/ifcgeom/*.cpp )
465465set (IFCGEOM_FILES ${IFCGEOM_CPP_FILES} ${IFCGEOM_H_FILES} )
466+
466467IF (BUILD_SHARED_LIBS )
467- message (WARNING "Building IfcGeom as shared library not currently supported" )
468- add_library (IfcGeom SHARED ${IFCGEOM_FILES} )
469- ELSE ()
470- add_library (IfcGeom ${IFCGEOM_FILES} )
468+ message (WARNING "Building IfcGeom as shared library currently not supported depending on platform and compiler options" )
471469ENDIF ()
472470
471+ if (WIN32 )
472+ add_library (IfcGeom STATIC ${IFCGEOM_FILES} )
473+ else ()
474+ add_library (IfcGeom ${IFCGEOM_FILES} )
475+ endif ()
476+
473477TARGET_LINK_LIBRARIES (IfcGeom IfcParse )
474478
475479# IfcConvert
@@ -528,7 +532,7 @@ INSTALL(FILES ${IFCGEOM_H_FILES}
528532 DESTINATION ${INCLUDEDIR} /ifcgeom
529533)
530534
531- INSTALL (TARGETS ${IFCOPENSHELL_LIBRARIES} IfcConvert IfcGeomServer
535+ INSTALL (TARGETS IfcParse IfcGeom IfcConvert IfcGeomServer
532536 ARCHIVE DESTINATION ${LIBDIR}
533537 LIBRARY DESTINATION ${LIBDIR}
534538 RUNTIME DESTINATION ${BINDIR}
0 commit comments