Skip to content

CMake: fix install target for bundles (iOS/tvOS/watchOS)#194

Open
SpaceIm wants to merge 1 commit intoyse:developfrom
SpaceIm:fix/cross-build-ios
Open

CMake: fix install target for bundles (iOS/tvOS/watchOS)#194
SpaceIm wants to merge 1 commit intoyse:developfrom
SpaceIm:fix/cross-build-ios

Conversation

@SpaceIm
Copy link

@SpaceIm SpaceIm commented Jul 8, 2021

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).

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)

executables need BUNDLE DESTINATION on iOS/tvOS/watchOS
see https://cmake.org/cmake/help/latest/policy/CMP0006.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant