[CMake] Portable "treat warnings as errors"?

Sylvain Benner benner at virtools.com
Tue Sep 19 06:52:27 EDT 2006


If there is no such variable, you can still add the flag by yourself within 
an IF statement.

IF(CMAKE_COMPILER_IS_GNUCXX)
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

Sylvain


----- Original Message ----- 
From: "Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA" 
<artur.kedzierski at navy.mil>
To: "CMake Mailing List" <cmake at cmake.org>
Sent: Tuesday, September 19, 2006 12:15 PM
Subject: [CMake] Portable "treat warnings as errors"?


> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake 



More information about the CMake mailing list