MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0010155 | CMake | CMake | public | 2010-01-16 23:50 | 2010-12-14 18:50 | |||||
Reporter | vladsmail | |||||||||
Assigned To | David Cole | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-8 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0010155: CMAKE_OSX_DEPLOYMENT_TARGET should be optional | |||||||||
Description | The CMAKE_OSX_DEPLOYMENT_TARGET setting should either be optional or there should be a way to disable the -mmacosx-version-min= compiler flag. When building normal iPhone targets (arm architecture) this isn't a problem but if you try to make a iPhomeSimulator target (i386 x86_64) the -mmacosx-version-min clashes with the -miphoneos-version-min= flag: Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/queezy/Documents/CMakeOGL/builds/simulator-3.1/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk -mmacosx-version-min=10.6 -isystem /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/include -isystem /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/opt/iphone-simulator-3.1/include -isystem /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/usr/local/iphone-simulator-3.1/include -std=c99 -arch i386 -arch x86_64 -pipe -no-cpp-precomp --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk -miphoneos-version-min=3.1 -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /Users/queezy/Documents/CMakeOGL/builds/simulator-3.1/CMakeFiles/CMakeTmp/testCCompiler.c /Users/queezy/Documents/CMakeOGL/builds/simulator-3.1/CMakeFiles/CMakeTmp/testCCompiler.c:1: error: -mmacosx-version-min not allowed with -miphoneos-version-min /Users/queezy/Documents/CMakeOGL/builds/simulator-3.1/CMakeFiles/CMakeTmp/testCCompiler.c:1: error: -mmacosx-version-min not allowed with -miphoneos-version-min lipo: can't open input file: /var/tmp//ccgAZfkJ.out (No such file or directory) make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 1 make: *** [cmTryCompileExec/fast] Error 2 The only way I have been able to disable this is by optionally unseting CMAKE_OSX_DEPLOYMENT_TARGET in Platform/Darwin.cmake. I don't really understand why the flag is hardcoded into Sources/cmLocalGenerator.cxx... | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2010-01-16 23:50 | vladsmail | New Issue | ||||||||
2010-01-18 10:10 | Bill Hoffman | Status | new => assigned | |||||||
2010-01-18 10:10 | Bill Hoffman | Assigned To | => David Cole | |||||||
2010-01-29 11:34 | David Cole | Relationship added | related to 0009959 | |||||||
2010-01-29 11:58 | David Cole | Note Added: 0019366 | ||||||||
2010-01-29 11:59 | David Cole | Note Added: 0019367 | ||||||||
2010-01-29 11:59 | David Cole | Status | assigned => resolved | |||||||
2010-01-29 11:59 | David Cole | Resolution | open => fixed | |||||||
2010-02-01 21:52 | David Cole | Status | resolved => feedback | |||||||
2010-02-01 21:52 | David Cole | Resolution | fixed => reopened | |||||||
2010-02-01 21:52 | David Cole | Note Added: 0019421 | ||||||||
2010-02-01 21:52 | David Cole | Status | feedback => resolved | |||||||
2010-02-01 21:52 | David Cole | Resolution | reopened => fixed | |||||||
2010-12-14 18:50 | David Cole | Note Added: 0024115 | ||||||||
2010-12-14 18:50 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|