cmake - drop OPENCASCADE_LIBRARIES variable #7388

This commit is contained in:
Andrej730
2025-12-02 17:58:35 +05:00
parent a5d0187343
commit 6cbd3ed014
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -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)
+5 -1
View File
@@ -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})