Giter VIP home page Giter VIP logo

Comments (7)

NikitaFeodonit avatar NikitaFeodonit commented on May 15, 2024

And further work is done with CMAKE_OSX_SYSROOT as a path to a file, rather than as the name of the SDK.

In these points:

set(CMAKE_FIND_ROOT_PATH ${CMAKE_DEVELOPER_ROOT} ${CMAKE_OSX_SYSROOT}

${CMAKE_OSX_SYSROOT}/System/Library/Frameworks

I think there should be used CMAKE_OSX_SYSROOT_INT.

from ios-cmake.

NikitaFeodonit avatar NikitaFeodonit commented on May 15, 2024

For what purpose?

After reading the documentation it became clearer:

"Specify the location or name of the macOS platform SDK to be used."

from ios-cmake.

leetal avatar leetal commented on May 15, 2024

There are some problems with cmake versions above 3.14 that includes the combined builds support that forced me to rewrite the sysroot path.

from ios-cmake.

leetal avatar leetal commented on May 15, 2024

Is this still an issue fo you? The reasoning being that lots have changed since May and i have made some patches in the last months that might have improved the issue with regards to newer versions of CMake being released.

from ios-cmake.

NikitaFeodonit avatar NikitaFeodonit commented on May 15, 2024

Sorry for the long delay in answering. Hopefully I can check this out soon in my project.

from ios-cmake.

NikitaFeodonit avatar NikitaFeodonit commented on May 15, 2024

Nevertheless, I express my gratitude to you for the work done. Sorry I didn't do it right away.

My problem, both earlier and now, is to get exactly the path to the SDK. In my project, I build the Boost library through its build system (b2) and the CMake. CMake should pass the compiler path and flags to the b2. For this reason, a name of the SDK cannot be used.

As a result, both earlier and now, I use CMAKE_OSX_SYSROOT_INT from your ios.toolchain.cmake.

You can see more details in the project repositories.
Explanation and common scripts:
https://github.com/LibCMaker/LibCMaker
Project repository for the Boost building and CMAKE_OSX_SYSROOT_INT variable usage:
https://github.com/LibCMaker/LibCMaker_Boost/blob/master/cmake/cmr_boost_set_cmake_flags.cmake#L172
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isysroot ${CMAKE_OSX_SYSROOT_INT}")

But CMAKE_OSX_SYSROOT_INT is a variable for internal use, not documented.

That is, there is a problem with the CMAKE_OSX_SYSROOT variable, but I am using a workaround with undocumented variable CMAKE_OSX_SYSROOT_INT.

I think the problem can be closed by adding documentation for the CMAKE_OSX_SYSROOT_INT variable. And at your discretion, you can change the name of the variable.

from ios-cmake.

leetal avatar leetal commented on May 15, 2024

This is now "fixed" on dev where the "CMAKE_OSX_SYSROOT" always points to a path in the requested SDK. It is just setting the value more or less based off "CMAKE_OSX_SYSROOT_INT".

from ios-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.