View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015040CMakeCMakepublic2014-07-27 04:292015-01-05 08:39
ReporterMojca Miklavec 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformApple MacOSOS XOS Version
Product VersionCMake 3.0 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0015040: CMake needs to support building against "/" on OS X with a deployment target set
DescriptionCMake doesn't allow setting -DCMAKE_OSX_DEPLOYMENT_TARGET="10.8" together with -DCMAKE_OSX_SYSROOT="/".

According to an Apple engineer that's a problem/flaw. See also the whole discussion at
  https://trac.macports.org/ticket/44125 [^]
(If you are able to CC others, please add 'jeremyhu' at macports . org to this ticket.)

I'm attaching his patch that is currently being used in MacPorts:
    https://trac.macports.org/browser/trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin.cmake.diff?rev=122338 [^]
Steps To ReproduceRun
   cmake -DCMAKE_OSX_DEPLOYMENT_TARGET="10.8" -DCMAKE_OSX_SYSROOT="/" ...
on any CMake-based project. The build always fails, complaining that CMAKE_OSX_SYSROOT should also be set.
TagsNo tags attached.
Attached Filesdiff file icon patch-Modules-Platform-Darwin.cmake.diff [^] (595 bytes) 2014-07-27 04:29 [Show Content]

 Relationships

  Notes
(0036468)
Brad King (manager)
2014-07-28 10:04

Applied, thanks:

 OS X: Allow deployment target with "/" sysroot
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5b4faeef [^]
(0037593)
Robert Maynard (manager)
2015-01-05 08:39

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2014-07-27 04:29 Mojca Miklavec New Issue
2014-07-27 04:29 Mojca Miklavec File Added: patch-Modules-Platform-Darwin.cmake.diff
2014-07-28 10:04 Brad King Note Added: 0036468
2014-07-28 10:04 Brad King Assigned To => Brad King
2014-07-28 10:04 Brad King Status new => resolved
2014-07-28 10:04 Brad King Resolution open => fixed
2014-07-28 10:04 Brad King Fixed in Version => CMake 3.1
2014-07-28 10:04 Brad King Target Version => CMake 3.1
2015-01-05 08:39 Robert Maynard Note Added: 0037593
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team