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
>
>>
> 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
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
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
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