Internal
Public Access
Fix macOS configure error: add BUNDLE DESTINATION for install(TARGETS)
CMake requires an explicit BUNDLE DESTINATION for install(TARGETS) when the target has MACOSX_BUNDLE set, or configure fails with "install TARGETS give no BUNDLE DESTINATION for MACOSX_BUNDLE executable target". The RUNTIME clause still covers Linux/Windows; BUNDLE only applies when the target actually is a bundle (macOS), so no platform guard is needed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -210,6 +210,7 @@ set_target_properties(orbithub PROPERTIES
|
||||
|
||||
install(TARGETS orbithub
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
BUNDLE DESTINATION .
|
||||
)
|
||||
|
||||
set(ORBITHUB_PRIVATE_LIB_DESTINATION "${CMAKE_INSTALL_LIBDIR}/orbithub")
|
||||
|
||||
Reference in New Issue
Block a user