[cmake-developers] [CMake 0015806]: The Xcode generator consumes all arguments beginning with "-g"
Mantis Bug Tracker
mantis at public.kitware.com
Tue Oct 20 18:34:09 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15806
======================================================================
Reported By: Ching Ping Sun
Assigned To:
======================================================================
Project: CMake
Issue ID: 15806
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-20 18:34 EDT
Last Modified: 2015-10-20 18:34 EDT
======================================================================
Summary: The Xcode generator consumes all arguments beginning
with "-g"
Description:
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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-20 18:34 Ching Ping Sun New Issue
2015-10-20 18:34 Ching Ping Sun File Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list