[CMake] Problem using FindwxWidgets.cmake

2009-05-09 Thread user790 user790
I am trying to use CMake to configure a very simple project that uses wxWidgets, and I am running into a problem. The wxUSE_GUI flag is set to 0 in the Makefile generated by CMake and I therefore cannot use the GUI part of wxWidgets. Diving into FindwxWidgets.cmake, I see that compilation options

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

2008-10-07 Thread user790 user790
> >> > 1) What does your "unsuccess" mean? > It means that the outcome is a visual studio project which does not use the expected "/wd" flag for compilation. > > 2) You can edit flags from GUI, this should work. > If you mean the Visual Studio GUI, sure, but I would have to do that everyt

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

[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. project(testcmake) # None of this works #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4669") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4669" CACHE S

[CMake] Disable warnings in Visual Studio Express 2008

2008-10-02 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. project(testcmake) # None of this works #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4669") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4669" CACHE ST