On Fri, Dec 23, 2011 at 2:02 PM, Sean McBride <s...@rogue-research.com> wrote: > From the lack of reply, I guess there is indeed no way to specify flags only > for compiling and not for linking. > > Is there a bug in the Mantis for this already? >
I don't think so, but is it really a bug in CMake? > Sean > > > > On Tue, 20 Dec 2011 11:12:17 -0500, Sean McBride said: > >>Hi all, >> >>Searching the archives, I see that CMake deliberately passes the >>CMAKE_<LANG>_FLAGS for linking too: >> >><http://www.cmake.org/pipermail/cmake/2010-July/038090.html> >> >>If I add -std=c++0x to CMAKE_CXX_FLAGS, then compilation is fine, but >>clang will warn when linking: >> >>clang-3: warning: argument unused during compilation: '-std=c++0x' >> >>How does one specify flags only for compilation, not linking? > > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake