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 flag to cmake.


I assume you are using the Makefiles generator?
In Makefiles # may start a comment.

CMake does not seem to escape # in that context (I don't know if it can be escaped for all make dialects at all/the same way).

A temporary workaround that may work is:
 -Wno-\\#warnings

This will likely break other generators.

Nils
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to