MantisBT - CMake
View Issue Details
0015360CMakeCMakepublic2015-01-19 16:532016-01-04 11:51
Laurent Demailly 
 
normaltweakalways
closedduplicate 
Apple MacOS X10.4.10
 
 
0015360: XCode generated project yield "Project 'X' overrides the Architectures setting" warning
XCode generated project yield "Project 'X' overrides the Architectures setting" warning
That Xcode offers to fix by saying
"This will remove the setting and allow Xcode to automatically select Architectures based on the hardware available for the active platform and deployment target."
ldemailly-mbp:cmake_test ldemailly$ cat CMakeLists.txt
# CMake build file

cmake_minimum_required(VERSION 3.1)

project("CmakeTest" C CXX)

# On MacOS this requires the latest (master) CMake (and/or CMake 3.2)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)

add_executable(test1 test1.cpp)

ldemailly-mbp:cmake_test ldemailly$ cat test1.cpp
int main() {return 0;}

ldemailly-mbp:cmake_test_xcode ldemailly$ cmake31 ../cmake_test -G Xcode
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ldemailly/cmake_test_xcode
No tags attached.
duplicate of 0014736closed Brad King Xcode warning due to set ARCHS (CMAKE_OSX_ARCHITECTURES) variable in project 
png Screenshot 2015-01-19 13.51.37.png (243,998) 2015-01-19 16:53
https://public.kitware.com/Bug/file/5351/Screenshot%202015-01-19%2013.51.37.png
png
Issue History
2015-01-19 16:53Laurent DemaillyNew Issue
2015-01-19 16:53Laurent DemaillyFile Added: Screenshot 2015-01-19 13.51.37.png
2015-01-20 09:03Brad KingRelationship addedduplicate of 0014736
2015-01-20 09:03Brad KingStatusnew => resolved
2015-01-20 09:03Brad KingResolutionopen => duplicate
2015-06-01 08:38Robert MaynardNote Added: 0038849
2015-06-01 08:38Robert MaynardStatusresolved => closed
2015-06-05 16:50Laurent DemaillyNote Added: 0038886
2015-06-05 16:50Laurent DemaillyStatusclosed => feedback
2015-06-05 16:50Laurent DemaillyResolutionduplicate => reopened
2015-06-08 08:28Brad KingNote Added: 0038890
2015-06-08 08:28Brad KingStatusfeedback => resolved
2015-06-08 08:28Brad KingResolutionreopened => duplicate
2016-01-04 11:51Robert MaynardNote Added: 0040060
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0038849)
Robert Maynard   
2015-06-01 08:38   
Closing resolved issues that have not been updated in more than 4 months.
(0038886)
Laurent Demailly   
2015-06-05 16:50   
I used
cmake version 3.2.2
on MacOS with XCode version 6.3 (6D570)
and I still see that warning - what is the workaround/anything I can put in my CMake file to not have this ?
(0038890)
Brad King   
2015-06-08 08:28   
This was resolved as a duplicate of 0014736, and that one is marked as fixed in CMake 3.3, not 3.2. Please try 3.3.0-rc1 or higher.
(0040060)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.