I thought about doing it this way. However, then I thought that there might be some portable way of doing that which would save me all the IF/ENDIF's. Sounds like something relatively easy to implement. Should I add that to CMake's bug tracker? Anyway, thank You for the code snippet. I don't have to look up the right variables.
-- Artur Kedzierski -----Original Message----- From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 3:52 To: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA; CMake Mailing List Subject: Re: [CMake] Portable "treat warnings as errors"? 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" <[EMAIL PROTECTED]> To: "CMake Mailing List" <cmake@cmake.org> Sent: Tuesday, September 19, 2006 12:15 PM Subject: [CMake] Portable "treat warnings as errors"? > _______________________________________________ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake