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

Support building and installing helper executables when cross-compiling #553

Merged
merged 6 commits into from
Nov 9, 2019

Conversation

McMartin
Copy link
Owner

@McMartin McMartin commented Nov 8, 2019

This is required to support iOS (see #551 (comment)).

@MartyLake: please review, thanks!

CMAKE_CONFIGURATION_TYPES is defined by CMake when executing the
project() command while using a multi-config generator like Visual
Studio or Xcode. Thus `NOT DEFINED CMAKE_CONFIGURATION_TYPES` was always
evaluate to false.
Especially for paths that contain spaces.
try_compile() should be used for testing whether a project can be built
with the current CMake toolchain, not for building and installing
arbitrary software.

This change is required to support cross-compiling toolchains like iOS
and Android, since we need to build the helper executables for the host
and not the target platform.
This was not done in the previous commit to reduce its diff.
@McMartin McMartin force-pushed the build-and-install-helpers-when-cross-compiling branch from c39ccb2 to 07bc5c0 Compare November 8, 2019 22:27
@MartyLake
Copy link
Collaborator

LGTM

@McMartin McMartin merged commit 637313a into master Nov 9, 2019
@McMartin McMartin deleted the build-and-install-helpers-when-cross-compiling branch November 9, 2019 09:32
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.

2 participants