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 ====================================================================== -- 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
