Browse Source

Merge topic 'csharp_fix_initial_flags'

a3388900 VS: Initialize CSharp flags consistently

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1232
Brad King 8 years ago
parent
commit
932ba44f07
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Copyright.txt
  2. 1 1
      Modules/CMakeCSharpInformation.cmake

+ 1 - 0
Copyright.txt

@@ -69,6 +69,7 @@ The following individuals and institutions are among the Contributors:
 * Matthaeus G. Chajdas
 * Matthias Kretz <[email protected]>
 * Matthias Maennich <[email protected]>
+* Michael Stürmer
 * Miguel A. Figueroa-Villanueva
 * Mike Jackson
 * Mike McQuaid <[email protected]>

+ 1 - 1
Modules/CMakeCSharpInformation.cmake

@@ -43,7 +43,7 @@ endif()
 # on the initial values computed in the platform/*.cmake files
 # use _INIT variables so that this only happens the first time
 # and you can set these flags in the cmake cache
-set(CMAKE_CSharp_FLAGS_INIT "$ENV{CSharpFLAGS} ${CMAKE_CSharp_FLAGS_INIT}")
+set(CMAKE_CSharp_FLAGS_INIT "$ENV{CSFLAGS} ${CMAKE_CSharp_FLAGS_INIT}")
 # avoid just having a space as the initial value for the cache
 if(CMAKE_CSharp_FLAGS_INIT STREQUAL " ")
   set(CMAKE_CSharp_FLAGS_INIT)