[cmake-developers] [CMake 0015427]: Xcode generation omits CXX flags for linking

Mantis Bug Tracker mantis at public.kitware.com
Sat Feb 28 12:55:00 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15427 
====================================================================== 
Reported By:                Clinton Stimpson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15427
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-02-28 12:55 EST
Last Modified:              2015-02-28 12:55 EST
====================================================================== 
Summary:                    Xcode generation omits CXX flags for linking
Description: 
If I set CXXFLAGS (env var) or CMAKE_CXX_FLAGS, the resulting Xcode project does
not contain those flags when linking C++ binaries, but a resulting Makefile
does.

This can result in link errors when building with Xcode which one does not see
when building with Makefiles.

Steps to Reproduce: 
Using the attached project, build using Makefiles and it works fine.
Build with Xcode and one gets link errors about unresolved symbols from the
standard c++ library.

Notice how the -stdlib=libstdc++ flag is missing from the link command under
Xcode.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-02-28 12:55 Clinton StimpsonNew Issue                                    
2015-02-28 12:55 Clinton StimpsonFile Added: test-stdlib.tar                    
======================================================================



More information about the cmake-developers mailing list