executables in install target need a BUNDLE DESTINATION if cross-build to iOS/tvOS/watchOS
By removing RUNTIME, the same DESTINATION is set for all types, including BUNDLE (and since there are only executables in those install commands, we don't care of ARCHIVE and LIBRARY destination).
executables in install target need a BUNDLE DESTINATION if cross-build to iOS/tvOS/watchOS
By removing
RUNTIME
, the sameDESTINATION
is set for all types, includingBUNDLE
(and since there are only executables in those install commands, we don't care ofARCHIVE
andLIBRARY
destination).see https://cmake.org/cmake/help/latest/policy/CMP0006.html (and
MACOSX_BUNDLE
is ON by default for iOS/tvOS/watchOS: https://cmake.org/cmake/help/latest/variable/CMAKE_MACOSX_BUNDLE.html#variable:CMAKE_MACOSX_BUNDLE)