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/Windows-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/Windows-GNU.cmake')
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index a7653cf..c827c32 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -61,8 +61,6 @@ if(NOT CMAKE_GENERATOR_RC AND CMAKE_GENERATOR MATCHES "Unix Makefiles") set(CMAKE_GENERATOR_RC windres) endif() -enable_language(RC) - macro(__windows_compiler_gnu lang) if(MSYS OR MINGW) @@ -139,6 +137,8 @@ macro(__windows_compiler_gnu lang) ) endforeach() endif() + + enable_language(RC) endmacro() macro(__windows_compiler_gnu_abi lang) |