mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
cmake - drop OPENCASCADE_LIBRARIES variable #7388
This commit is contained in:
@@ -207,8 +207,8 @@ endif()
|
|||||||
|
|
||||||
if(WITH_OPENCASCADE)
|
if(WITH_OPENCASCADE)
|
||||||
find_package(OpenCASCADE REQUIRED)
|
find_package(OpenCASCADE REQUIRED)
|
||||||
# Map OpenCASCADE_LIBRARIES variable from OpenCASCADEConfig.cmake to OPENCASCADE_LIBRARIES used by kernel generic cmake file
|
# Map OpenCASCADE_LIBRARIES variable from OpenCASCADEConfig.cmake to OpenCASCADE_LIBRARIES used by kernel generic cmake file
|
||||||
set(OPENCASCADE_LIBRARIES ${OpenCASCADE_LIBRARIES})
|
set(OpenCASCADE_LIBRARIES ${OpenCASCADE_LIBRARIES})
|
||||||
add_definitions(-DIFOPSH_WITH_OPENCASCADE)
|
add_definitions(-DIFOPSH_WITH_OPENCASCADE)
|
||||||
set(SWIG_DEFINES ${SWIG_DEFINES} -DIFOPSH_WITH_OPENCASCADE)
|
set(SWIG_DEFINES ${SWIG_DEFINES} -DIFOPSH_WITH_OPENCASCADE)
|
||||||
list(APPEND GEOMETRY_KERNELS opencascade)
|
list(APPEND GEOMETRY_KERNELS opencascade)
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ if(WITH_PROJ)
|
|||||||
target_link_libraries(Serializers PRIVATE proj::proj)
|
target_link_libraries(Serializers PRIVATE proj::proj)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(Serializers PRIVATE ${SERIALIZER_SCHEMA_LIBRARIES} ${OPENCOLLADA_LIBRARIES} ${USD_LIBRARIES} IfcGeom ${OPENCASCADE_LIBRARIES} ${kernel_libraries} IfcParse)
|
target_link_libraries(Serializers
|
||||||
|
PRIVATE
|
||||||
|
${SERIALIZER_SCHEMA_LIBRARIES} ${OPENCOLLADA_LIBRARIES} ${USD_LIBRARIES}
|
||||||
|
IfcGeom ${OpenCASCADE_LIBRARIES} ${kernel_libraries} IfcParse
|
||||||
|
)
|
||||||
|
|
||||||
install(TARGETS Serializers)
|
install(TARGETS Serializers)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ foreach(schema ${SCHEMA_VERSIONS})
|
|||||||
if(WASM_BUILD)
|
if(WASM_BUILD)
|
||||||
target_link_libraries(Serializers_ifc${schema} ${HDF5_LIBRARIES})
|
target_link_libraries(Serializers_ifc${schema} ${HDF5_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
target_link_libraries(Serializers_ifc${schema} IfcGeom ${OPENCASCADE_LIBRARIES} ${HDF5_LIBRARIES})
|
target_link_libraries(Serializers_ifc${schema} IfcGeom ${OpenCASCADE_LIBRARIES} ${HDF5_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS Serializers_ifc${schema})
|
install(TARGETS Serializers_ifc${schema})
|
||||||
|
|||||||
Reference in New Issue
Block a user