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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
