All of the examples indicating ENABLE_LANGUAGE(RC) have the compiler set afterwards, and it turns out that the following lines work much better...
I Added these to WIndows-GNU.cmake SET(CMAKE_RC_COMPILER "windres") SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -O coff -o <OBJECT> <SOURCE>") ENABLE_LANGUAGE(RC) by specifying -O coff, it outputs .obj format file containing the resources, and the link works. only thing that's really wrong with this is that <FLAGS> is the full set of C definitions, and it may be different with more or less in reality. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake