Browse Source

Merge topic 'ninja-cmcldeps'

fd28e24947 Windows-MSVC.cmake: fix disabling of CMAKE_NINJA_CMCLDEPS_RC

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3404
Brad King 6 years ago
parent
commit
720253393c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Modules/Platform/Windows-MSVC.cmake

+ 3 - 1
Modules/Platform/Windows-MSVC.cmake

@@ -421,5 +421,7 @@ macro(__windows_compiler_msvc_enable_rc flags)
   endif()
 
   enable_language(RC)
-  set(CMAKE_NINJA_CMCLDEPS_RC 1)
+  if(NOT DEFINED CMAKE_NINJA_CMCLDEPS_RC)
+    set(CMAKE_NINJA_CMCLDEPS_RC 1)
+  endif()
 endmacro()