Re: [CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Rashad M
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 -W

Re: [CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Nils Gladitz
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 t

Re: [CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Nils Gladitz
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

Re: [CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Rashad M
On Mon, May 19, 2014 at 9:30 AM, Nils Gladitz wrote: > On 05/19/2014 09:05 AM, Rashad M wrote: > >> Hi all, >> >> I was trying to add a cxx flags to clang -Wno-#warnings. to supress a >> deprecated header warning. >> >> > >> It is clear that -Wno-#warning is not parsed properly. This maybe due to

Re: [CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Nils Gladitz
On 05/19/2014 09:05 AM, Rashad M wrote: Hi all, I was trying to add a cxx flags to clang -Wno-#warnings. to supress a deprecated header warning. It is clear that -Wno-#warning is not parsed properly. This maybe due to clang warning flag starting with # symbol. Is there any way to add this

[CMake] cmake cannot add clang cxx flags

2014-05-19 Thread Rashad M
Hi all, I was trying to add a cxx flags to clang -Wno-#warnings. to supress a deprecated header warning. In file included from main.cxx:3: /opt/install/vcl/vcl_deprecated_header.h:10:3: warning: "deprecated" [-W#warnings] # warning "deprecated" when i compile from terminal. clang++ main.cxx -I/