Re: [CMake] Disabling warnings in Visual Studio Express 2008

2008-10-07 Thread user790 user790
2008/10/6 Werner Smekal [EMAIL PROTECTED] Hi, one thing I would try is add_definitions( -wd1234 ) since, cmake changes the - or / automatically for the compiler, as well as add_definitions( /wd1234 ) None of these work here. If that indeed works for other configurations, I find this

Re: [CMake] Disabling warnings in Visual Studio Express 2008

2008-10-06 Thread Werner Smekal
Hi, normally I just do add_definitions( /wd4996 ) http://www.cmake.org/cmake/help/ cmake2.6docs.html#command:add_definitions Despite its name you can also add compiler flags. Compile your program with nmake VERBOSE=1 so that you can see if the compiler flags was successfully added.

[CMake] Disabling warnings in Visual Studio Express 2008

2008-10-03 Thread user790 user790
Disabling specific warnings is a simple task so I thought I could do it myself but I must admit defeat. A simple CMakeLists.txt like this won't work. code project(testcmake) # None of this works #set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /wd4669) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /wd4669 CACHE