diff options
author | Brad King <brad.king@kitware.com> | 2015-02-25 16:15:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-25 16:16:51 (GMT) |
commit | 4300de3e2759810ddfd253352eb42cd7f3514c85 (patch) | |
tree | 88656c182a5b95633b7815f43b5e047f5b06dcad /Modules/Platform/CYGWIN-GNU.cmake | |
parent | 1de4a0fb09fded1401ecb1aeaecb1159ae46a3c6 (diff) | |
download | CMake-4300de3e2759810ddfd253352eb42cd7f3514c85.zip CMake-4300de3e2759810ddfd253352eb42cd7f3514c85.tar.gz CMake-4300de3e2759810ddfd253352eb42cd7f3514c85.tar.bz2 |
RC: Enable language after C, CXX, or Fortran is enabled (#15404)
The RC language is special in that it is automatically enabled
on Windows-based platforms when another primary language is
enabled. Move enablement of RC from early in the enablement
of the other language to late. This will allow it to use
information detected as part of enabling C, CXX, or Fortran.
Diffstat (limited to 'Modules/Platform/CYGWIN-GNU.cmake')
-rw-r--r-- | Modules/Platform/CYGWIN-GNU.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/CYGWIN-GNU.cmake b/Modules/Platform/CYGWIN-GNU.cmake index fe25ab2..3144ac4 100644 --- a/Modules/Platform/CYGWIN-GNU.cmake +++ b/Modules/Platform/CYGWIN-GNU.cmake @@ -25,7 +25,6 @@ set(CMAKE_CREATE_WIN32_EXE "-mwindows") set(CMAKE_GNULD_IMAGE_VERSION "-Wl,--major-image-version,<TARGET_VERSION_MAJOR>,--minor-image-version,<TARGET_VERSION_MINOR>") set(CMAKE_GENERATOR_RC windres) -enable_language(RC) macro(__cygwin_compiler_gnu lang) # Binary link rules. set(CMAKE_${lang}_CREATE_SHARED_MODULE @@ -53,4 +52,6 @@ macro(__cygwin_compiler_gnu lang) # TODO: Is -Wl,--enable-auto-import now always default? set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,--enable-auto-import") set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS}") + + enable_language(RC) endmacro() |