MantisBT - CMake
View Issue Details
0015806CMakeCMakepublic2015-10-20 18:342016-06-10 14:31
Ching Ping Sun 
Gregor Jasny 
normalminoralways
closedmoved 
Apple MacOS X10.4.10
CMake 3.2 
 
0015806: The Xcode generator consumes all arguments beginning with "-g"
cmake, when generating Xcode projects, attempts to translate arguments starting with -g… flags into the proper Xcode project file setting. In doing so, it removes all arguments beginning with "-g" from the CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG variables and they do not get passed to the OTHER_CPLUSPLUSFLAGS and OTHER_CFLAGS values in the Xcode project.

I have attached 2 files to reproduce this situation. (one CMakeLists.txt, one foo.cpp as a build source), in CMakeLists.txt, the -ftemplate-depth=1024 can be translated to Xcode project settings, while the -gline-tables-only can not.
No tags attached.
txt CMakeLists.txt (207) 2015-10-20 18:34
https://public.kitware.com/Bug/file/5556/CMakeLists.txt
cpp foo.cpp (141) 2015-10-20 18:35
https://public.kitware.com/Bug/file/5557/foo.cpp
Issue History
2015-10-20 18:34Ching Ping SunNew Issue
2015-10-20 18:34Ching Ping SunFile Added: CMakeLists.txt
2015-10-20 18:35Ching Ping SunFile Added: foo.cpp
2015-10-21 01:38Gregor JasnyAssigned To => Gregor Jasny
2015-10-21 01:38Gregor JasnyStatusnew => assigned
2016-06-10 14:29Kitware RobotNote Added: 0042865
2016-06-10 14:29Kitware RobotStatusassigned => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042865)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.