View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009051CMakeCMakepublic2009-05-19 10:132009-05-19 11:25
ReporterMichael Wild 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0009051: CMake does not pass CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET when running TRY_COMPILE
DescriptionWhen one does invokes TRY_COMPILE one would expect that CMake also passes CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to the test project such that it compiles under the same conditions as the actual project will. This is currently not the case and the default values are picked.

See the attached patch for a fix.
TagsNo tags attached.
Attached Filespatch file icon fix_cmCoreTryCompile_to_pass_CMAKE_OSX_variables.patch [^] (1,236 bytes) 2009-05-19 10:13 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0016527)
Bill Hoffman (manager)
2009-05-19 11:10

I guess why we have not seen this is that we always use the shell environment variables.

export CMAKE_OSX_SYSROOT=...
export OSX_DEPLOYMENT_TARGET=...
cmake ../source

In this case it will work.
(0016528)
Bill Hoffman (manager)
2009-05-19 11:25

$ cvs commit -m "BUG: fix for 0009051 CMake does not pass CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET when running TRY_COMPILE" cmCoreTryCompile.cxx
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Source/cmCoreTryCompile.cxx,v <-- cmCoreTryCompile.cxx
new revision: 1.13; previous revision: 1.12
(0016529)
Bill Hoffman (manager)
2009-05-19 11:25

Thanks.

- Issue History
Date Modified Username Field Change
2009-05-19 10:13 Michael Wild New Issue
2009-05-19 10:13 Michael Wild File Added: fix_cmCoreTryCompile_to_pass_CMAKE_OSX_variables.patch
2009-05-19 11:10 Bill Hoffman Note Added: 0016527
2009-05-19 11:10 Bill Hoffman Status new => assigned
2009-05-19 11:10 Bill Hoffman Assigned To => Bill Hoffman
2009-05-19 11:25 Bill Hoffman Note Added: 0016528
2009-05-19 11:25 Bill Hoffman Note Added: 0016529
2009-05-19 11:25 Bill Hoffman Status assigned => closed
2009-05-19 11:25 Bill Hoffman Resolution open => fixed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker