Browse Source

BUG: Pass definitions to rc with Makefiles

The build rule to run the resource compiler on Windows with a Makefiles
generator should include the placeholder to add the definition flags.
See issue #7769.
Brad King 17 years ago
parent
commit
7876a5098b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/CMakeRCInformation.cmake

+ 1 - 1
Modules/CMakeRCInformation.cmake

@@ -23,7 +23,7 @@ SET(CMAKE_INCLUDE_FLAG_RC "-I")
 # compile a Resource file into an object file
 IF(NOT CMAKE_RC_COMPILE_OBJECT)
   SET(CMAKE_RC_COMPILE_OBJECT
-    "<CMAKE_RC_COMPILER> <FLAGS>  /fo<OBJECT> <SOURCE>")
+    "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> /fo<OBJECT> <SOURCE>")
 ENDIF(NOT CMAKE_RC_COMPILE_OBJECT)
 
 MARK_AS_ADVANCED(