[cmake-developers] [PATCH] Windows-GNU, CYGWIN-GNU: Include corresponding windres script

Brad King brad.king at kitware.com
Wed Oct 22 10:42:40 EDT 2014


On 10/21/2014 08:08 PM, Timothy Gu wrote:
>  enable_language(RC)
> +include(Platform/CYGWIN-windres)
[snip]
> +include(Platform/Windows-windres)
> +
>  enable_language(RC)

The enable_language(RC) call should internally include those
modules.  In CMakeRCInformation:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeRCInformation.cmake;hb=v3.0.2#l29

the line

 include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)

should do it.

-Brad




More information about the cmake-developers mailing list