[CMake] add_definition??
klaas.holwerda
ngi at klaasholwerda.nl
Wed Apr 13 17:50:36 EDT 2011
Hi,
I use ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} ) to add flags for compilation like this:
set( wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS}
-D__WXMSW__ -D__GNUWIN32__ -D__WIN95__
-fexceptions -fno-pcc-struct-return
-fstrict-aliasing
-Wall #all warnings
-Wno-unused-variable
)
Now a user complains that those flags are added to CXX_FLAGS as well as RC_FLAGS .
The first is right, the second is a problem for the resource compiler windres.exe used in codeblocks
IDE.
What is the right way to set compiler flags for cpp sources and other flags for the resource compiler?
Or are the generated makefiles not correct??
Thanks,
Klaas
More information about the CMake
mailing list