Notes |
|
(0014048)
|
Maik Beckmann
|
2008-11-06 08:15
|
|
rc-match.patch for CVS HEAD.
Changing CMakeLists.txt in test.zip to
{{{
cmake_minimum_required(VERSION 2.6)
project(test)
if(MINGW)
set(CMAKE_RC_COMPILER_INIT windres)
ENABLE_LANGUAGE(RC)
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> <SOURCE>")
endif(MINGW)
# sim executable
ADD_EXECUTABLE(test WIN32
test.cpp
test.rc
)
}}}
makes it work.
-- Maik |
|
|
(0014049)
|
Maik Beckmann
|
2008-11-06 08:21
|
|
I didn't try but I expect adding
{{{
if(MINGW)
set(CMAKE_RC_COMPILER_INIT windres)
ENABLE_LANGUAGE(RC)
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> <SOURCE>")
endif(MINGW)
}}}
to Modules/Platform/Windows-gcc breaks the compiler checks if windres isn't in the mingw bin directory. Thus I omitted these changes to Windows-gcc.cmake.
-- Maik |
|
|
(0014194)
|
Axel Dörfler
|
2008-11-26 07:10
|
|
When I add the changes as proposed above, I get a "CMAKE_RC_CREATE_SHARED_LIBRARY missing but required variable" error. |
|
|
(0018950)
|
Peter Collingbourne
|
2009-12-18 18:30
|
|
I have developed another patch to add this feature (attached, 0001-Added-support-for-windres-in-MinGW-and-MSYS-makefile.patch) which applies to the current CVS HEAD. The advantage of this patch is that there is no need to include any specific code in the CMakeLists.txt file. |
|
|
(0020843)
|
Sergey Belyashov
|
2010-05-27 10:26
|
|
I try cmake-2.8.1 and cmake-2.8.0. Both has problems with windres & mingw. Moreover git master has no any changes for related files. |
|
|
(0020875)
|
Peter Collingbourne
|
2010-05-31 11:16
|
|
My patch still applies cleanly to the current git next branch. It would be great if a developer could look at pushing this patch. |
|
|
(0021763)
|
Peter Collingbourne
|
2010-08-15 13:41
|
|
I updated my patch to apply cleanly to the master branch. The new patch is 0001-Added-support-for-windres-in-MinGW-and-MSYS-makefile.new.patch . |
|
|
(0022752)
|
Adam J Richardson
|
2010-10-29 11:13
|
|
I just noticed this on my Windows XP SP3, g++ 4.4.1 build slave. My DLL was quietly building without its RC file until I applied Maik's patch to my CMakeLists.txt. Thanks Maik. |
|
|
(0022891)
|
Adam J Richardson
|
2010-11-05 06:37
|
|
Seems to work better if you tell windres it's outputting a COFF object:
set(CMAKE_RC_COMPILER_INIT windres)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>") |
|
|
(0024332)
|
Bill Hoffman
|
2010-12-28 11:04
|
|
Thanks for the patch, I just pushed changes based on the patch to next in git. |
|
|
(0026078)
|
David Cole
|
2011-04-04 12:00
|
|
Closing resolved issues that have not been updated in more than 3 months. |
|