[CMake] cmake cannot add clang cxx flags
Rashad M
mohammedrashadkm at gmail.com
Mon May 19 04:42:35 EDT 2014
Thanks Nils,
Anyway I was not using any Ninja generator. I added CMAKE_CXX_FLAGS inside
a dashboard submission script.
-Wno-#warnings, "-Wno-#warnings" -Wno-\#warnings didnt worked.
>From terminal i can say cmake -DCMAKE_CXX_FLAGS='Wall -Wno-\#warnings" and
from ctest script. As you suggested -Wno-\\#warnings worked.
Adding this information in cmake would be helpful for other users. Just a
wish. :)
On Mon, May 19, 2014 at 10:36 AM, Nils Gladitz <nilsgladitz at gmail.com>wrote:
> On 05/19/2014 10:13 AM, Nils Gladitz wrote:
>
>> On 05/19/2014 09:52 AM, Rashad M wrote:
>>
>>>
>>>
>>> Which generators?. if using MSVC or GCC there is no Wno-#warnings
>>> available right?
>>>
>>
>> "Ninja" also uses # comments but does not seem to require escaping in
>> this context ... adding escapes may or may not break that.
>>
>> Also any of the extra generators that handle macro definitions and
>> export them to their project files e.g. CodeBlocks (also used by
>> QtCreator) and Eclipse.
>>
>> Nils
>>
>
> Forget that last part about the extra generators ... for some reason I was
> thinking definitions rather than warning options.
>
> Nils
>
>
--
Regards,
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140519/75a5759e/attachment.html>
More information about the CMake
mailing list