Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,106
    • Issues 4,106
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #16355
Closed
Open
Issue created Oct 09, 2016 by Memphiz@Memphiz

Some cross compiling macOS -> iOS cases broken since CMake 3.4

Commit 24aafbde broke cross compilation for ios / tvos.

Before this it was possible to not set CMAKE_OSX_DEPLOYMENT_TARGET which is ok when you do cross compile and pass sysroot and deployment-target via cflags, cxxflags.

WIth this commit the CMAKE_OSX_DEPLOYMENT_TARGET is set to the version of the host os in some situations. This results in the fact that the -mmacosx-version-min= flag is added to cflags / cxxflags.

When compiling for ios for example in need to set -miphoneos-version-min instead ... with this change - both gets set ( "-miphoneos-version-min" <- through my toolchain.cmake and "-mmacosx-version-min" because of CMAKE_OSX_DEPLOYMENT_TARGET) and cmake fails during compiler checking because this is an invalid combination of flags.

Might be the cause for this too: #16349 (closed) - not sure. (EDIT: it is not)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking