We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee2a1b commit 22407b2Copy full SHA for 22407b2
src/lib.rs
@@ -562,6 +562,12 @@ impl Config {
562
if !self.defined("CMAKE_SYSTEM_NAME") {
563
cmd.arg("-DCMAKE_SYSTEM_NAME=SunOS");
564
}
565
+ } else if target.contains("apple-ios") || target.contains("apple-tvos") {
566
+ // These two flags prevent CMake from adding an OSX sysroot, which messes up compilation.
567
+ if !self.defined("CMAKE_OSX_SYSROOT") && !self.defined("CMAKE_OSX_DEPLOYMENT_TARGET") {
568
+ cmd.arg("-DCMAKE_OSX_SYSROOT=/");
569
+ cmd.arg("-DCMAKE_OSX_DEPLOYMENT_TARGET=");
570
+ }
571
572
if let Some(ref generator) = self.generator {
573
cmd.arg("-G").arg(generator);
0 commit comments