Fix kernel/mapping plugin output dir and IfcViewer link dependencies

Use $<TARGET_FILE_DIR:IfcGeom> instead of hardcoded
${CMAKE_BINARY_DIR}/ifcgeom/$<CONFIG> for plugin runtime dirs — the
old path was wrong on non-MSVC generators where $<CONFIG> expands
empty. Add explicit add_dependencies for kernel/mapping plugins so
IfcViewer waits for them to build, and drop the redundant direct link
against ${kernel_libraries}.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-04-20 12:26:11 +10:00
parent 094d96c735
commit dbe68b48f2
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -40,10 +40,11 @@ set_target_properties(IfcViewer PROPERTIES
MACOSX_BUNDLE ON
)
add_dependencies(IfcViewer ${kernel_libraries} ${mapping_libraries})
target_link_libraries(IfcViewer PRIVATE
IfcGeom
IfcParse
${kernel_libraries}
${OpenCASCADE_LIBRARIES}
${Boost_LIBRARIES}
${CGAL_LIBRARIES}