ifcviewer-wgpu-minimal: add BUNDLE DESTINATION for macOS install rule

The target has MACOSX_BUNDLE ON, which on Darwin requires
install(TARGETS) to specify a BUNDLE DESTINATION — CMake validates
that at configure time, even when nobody runs `make install`. The
macOS CI configure step failed with:

    install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE
    executable target "IfcViewerWgpuMinimal".

Set BUNDLE DESTINATION bin alongside RUNTIME DESTINATION bin so both
platforms install into the same spot. No behavioural change on Linux
(no MACOSX_BUNDLE) — verified locally.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-06-01 18:16:19 +10:00
parent 317dbaa440
commit 07825b7442
+8 -1
View File
@@ -45,5 +45,12 @@ if(UNIX AND NOT APPLE AND WGPU_NATIVE_LIB_DIR)
)
endif()
install(TARGETS IfcViewerWgpuMinimal EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
# MACOSX_BUNDLE targets require BUNDLE DESTINATION at install time even
# when nobody is going to run `make install` (CMake validates the rule
# at configure). Provide one alongside the regular bin/ runtime path.
install(TARGETS IfcViewerWgpuMinimal
EXPORT ${IFCOPENSHELL_EXPORT_TARGETS}
RUNTIME DESTINATION bin
BUNDLE DESTINATION bin
)
ifcopenshell_deploy_qt_runtime(IfcViewerWgpuMinimal)