On Fri, 23 Dec 2011 14:06:30 -0500, David Cole said:

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

Obviously that's up for discussion. :)

My goal was to add the -std=c++0x flag to my dashboards, to ensure that their 
codebases are C++ compatible.  But that flag therefore gets passed in the link 
phase, and spews:

clang-3: warning: argument unused during compilation: '-std=c++0x'

So I guess my question is: how can I use -std=c++0x without getting warnings?

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada


--

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

Reply via email to