Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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