Re: [CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-28 Thread Georgios Petasis
O/H Bob Paddock ??: On Sunday 22 June 2008 03:25:21 pm Bill Hoffman wrote: Don't use add_definitions for compiler flags. Use CMAKE_CXX_FLAGS or CMAKE_C_FLAGS. Can you show an example please? When I try these: SET (CMAKE_CXX_FLAGS_DEBUG "-Wall" ) SET (CMAKE_CXX_FLAGS_RELEASE "-Wa

Re: [CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-28 Thread Bob Paddock
On Sunday 22 June 2008 03:25:21 pm Bill Hoffman wrote: > Don't use add_definitions for compiler flags.  Use CMAKE_CXX_FLAGS or > CMAKE_C_FLAGS. Can you show an example please? When I try these: SET (CMAKE_CXX_FLAGS_DEBUG "-Wall" ) SET (CMAKE_CXX_FLAGS_RELEASE "-Wall" ) SET (CMAKE_C_FLAGS_DEBUG "

Re: [CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-22 Thread Christian Ehrlicher
Bill Hoffman schrieb: Christian Ehrlicher wrote: Hi, We've something like this in one of our scripts: add_definitions(-EHsc) and we add a .rc - file to the sources. Now rc.exe fails because of unknown command '-EHsc' because add_defintions() is also dded to RC_FLAGS... :( [ 85%] Building RC

Re: [CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-22 Thread Bill Hoffman
Christian Ehrlicher wrote: Hi, We've something like this in one of our scripts: add_definitions(-EHsc) and we add a .rc - file to the sources. Now rc.exe fails because of unknown command '-EHsc' because add_defintions() is also dded to RC_FLAGS... :( [ 85%] Building RC object ksirk/ksirk/CMa

[CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-22 Thread Christian Ehrlicher
Hi, We've something like this in one of our scripts: add_definitions(-EHsc) and we add a .rc - file to the sources. Now rc.exe fails because of unknown command '-EHsc' because add_defintions() is also dded to RC_FLAGS... :( [ 85%] Building RC object ksirk/ksirk/CMakeFiles/ksirk.dir/ksirk.res