Comments (7)
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:
Line 595 in 3e5697c
Line 601 in 3e5697c
I think there should be used CMAKE_OSX_SYSROOT_INT
.
from ios-cmake.
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.
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.
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.
Sorry for the long delay in answering. Hopefully I can check this out soon in my project.
from ios-cmake.
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.
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)
- [bug] Should set ENABLE_STRICT_TRY_COMPILE TRUE by default HOT 5
- [bug] The platform OS64COMBINED generate Xcode project only for iOS HOT 1
- Feature: Add Support for Universal macOS builds (Apple Silicon + Intel) HOT 2
- [bug] build fail for SIMULATOR64 with xcode 14 HOT 2
- [question] Issue with APPLE_TARGET_TRIPLE (aarch64-apple-ios/arm64-apple-ios) HOT 5
- how to omit -G Xcode to use Makefile or use -G Ninjau HOT 2
- Honor CMAKE_FIND_FRAMEWORK if passed via command line
- [bug] Support for SIMULATORARM64_TVOS only HOT 2
- [bug] Support for OS only for armv7 HOT 2
- [bug] MacCatalyst x86_64 is building with macOS flags and not macabi HOT 5
- Add support for visionOS HOT 11
- [bug] Intermediate binaries compiled during cmake build are not signed when using ios.toolchain.cmake HOT 3
- command not found: cmake HOT 2
- how to show the duplicate symbols HOT 1
- Copy-if-different error while trying to build brainflow libraries using OS64COMBINED HOT 1
- ARM64 support for WATCHOS simulator is missing. HOT 2
- [bug] CMAKE_OSX_DEPLOYMENT_TARGET not CACHE HOT 2
- what's the different about release version and debug version? HOT 1
- the compiled framework contains only arm64
- [bug] building for iOS, but linking in object file built for iOS Simulator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-cmake.