diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2017-09-04 09:58:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-05 13:58:43 (GMT) |
commit | a3388900f88e2e576d17f635bbf3a7ed257804a3 (patch) | |
tree | 3591905ca1de82a38193355ae4854a9915b25e65 /Modules | |
parent | fca4423786ba2c4a5ab0ec6c1a1cbac8cd8600b4 (diff) | |
download | CMake-a3388900f88e2e576d17f635bbf3a7ed257804a3.zip CMake-a3388900f88e2e576d17f635bbf3a7ed257804a3.tar.gz CMake-a3388900f88e2e576d17f635bbf3a7ed257804a3.tar.bz2 |
VS: Initialize CSharp flags consistently
Use the same environment variable for the initial flags that we
use for the compiler id.
Fixes: #17250
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCSharpInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCSharpInformation.cmake b/Modules/CMakeCSharpInformation.cmake index cd86016..f71dcef 100644 --- a/Modules/CMakeCSharpInformation.cmake +++ b/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) |