MantisBT - CMake
View Issue Details
0010194CMakeCMakepublic2010-01-27 16:192015-05-04 09:05
James Bigler 
 
normalminoralways
closedfixed 
CMake-2-8 
CMake 3.1CMake 3.1 
0010194: setting CMAKE_RC_FLAGS has no affect on rc flags
Modifying CMAKE_RC_FLAGS does not actually add any flags to resource compilation. I've tried the following:

/D MY_FLAG
/DMY_FLAG
-D MY_FLAG
-DMY_FLAG

This is also broken in CMake 2.6.4.

I'm using the VS 2009 32 bit generator on XP-64.
No tags attached.
Issue History
2010-01-27 16:19James BiglerNew Issue
2010-12-15 10:00David ColeStatusnew => assigned
2010-12-15 10:00David ColeAssigned To => Bill Hoffman
2012-01-25 10:00Cédric OCHSNote Added: 0028405
2014-12-02 09:18Brad KingNote Added: 0037354
2014-12-02 09:18Brad KingAssigned ToBill Hoffman =>
2014-12-02 09:18Brad KingStatusassigned => resolved
2014-12-02 09:18Brad KingResolutionopen => fixed
2014-12-02 09:18Brad KingFixed in Version => CMake 3.1
2014-12-02 09:18Brad KingTarget Version => CMake 3.1
2015-05-04 09:05Robert MaynardNote Added: 0038685
2015-05-04 09:05Robert MaynardStatusresolved => closed

Notes
(0028405)
Cédric OCHS   
2012-01-25 10:00   
It's still broken and I need the possibility to add a flag to RC compiler.

I need to change the "Culture" parameter from "VCResourceCompilerTool" section in VC++ (2005, 2008 and 2010) and set it to French, but I didn't find any way to do that with CMake :(

That's still set to compiler default "English".

The parameter used for resource compiler is "/l xxxx" (lowercase L) followed by the language code.

Only allowing to use : SET(CMAKE_RC_FLAGS "/l 1036") in CMakeLists.txt should be enough for me :)

Please could you implement it ?

Thanks a lot !
(0037354)
Brad King   
2014-12-02 09:18   
This was fixed here:

 VS: Fix handling of non-preprocessor flags in CMAKE_RC_FLAGS
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5d873846 [^]

and will be in the 3.1 release.
(0038685)
Robert Maynard   
2015-05-04 09:05   
Closing resolved issues that have not been updated in more than 4 months.