[CMake] Treating warnings as errors
Brad King
brad.king at kitware.com
Mon Nov 8 11:36:23 EST 2004
At 02:59 PM 11/6/2004, Jorg CMake wrote:
>In VS7.1, cmake automatically sets the warning flag to /WX which is
>"treating warnings as errors" ... How can I get rid of this flag ? I
>tried searching the archives for it but could not find anything .. If
>this is caused by an option in my CMakeLists.txt, could someone point me
>into the right direction? The CMakeLists.txt is:
[snip]
>INCLUDE (${WXMOZILLA_SOURCE_DIR}/bin/FindwxWin.cmake)
>
>SET(CMAKE_CXX_FLAGS "${CMAKE_WX_CXX_FLAGS} -DFINAL=0 -DUSEDLL=0
>-DXPCOM_GLUE=1")
>SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D__WXDEBUG__
>-DWXDEBUG=1")
I bet the flag is getting added by CMAKE_WX_CXX_FLAGS. This is possibly
coming from FindwxWin.cmake.
-Brad
More information about the CMake
mailing list