diff options
author | Brad King <brad.king@kitware.com> | 2019-04-05 21:48:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-10 17:40:25 (GMT) |
commit | f621e7fa5df8d35cc379f9f7825f3d75b8489876 (patch) | |
tree | 83bf2d9c9a6b2123345e0023218ab8260c432ca4 | |
parent | 876680e94bed75e1e22a78f1e063e545ff6bce69 (diff) | |
download | CMake-f621e7fa5df8d35cc379f9f7825f3d75b8489876.zip CMake-f621e7fa5df8d35cc379f9f7825f3d75b8489876.tar.gz CMake-f621e7fa5df8d35cc379f9f7825f3d75b8489876.tar.bz2 |
VS: Fix Fortran runtime library flag map special case for '-' options
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx index e8b2668..e1b0c70 100644 --- a/Source/cmVisualStudioGeneratorOptions.cxx +++ b/Source/cmVisualStudioGeneratorOptions.cxx @@ -374,19 +374,19 @@ void cmVisualStudioGeneratorOptions::StoreUnknownFlag(std::string const& flag) { // Look for Intel Fortran flags that do not map well in the flag table. if (this->CurrentTool == FortranCompiler) { - if (flag == "/dbglibs") { + if (flag == "/dbglibs" || flag == "-dbglibs") { this->FortranRuntimeDebug = true; return; } - if (flag == "/threads") { + if (flag == "/threads" || flag == "-threads") { this->FortranRuntimeMT = true; return; } - if (flag == "/libs:dll") { + if (flag == "/libs:dll" || flag == "-libs:dll") { this->FortranRuntimeDLL = true; return; } - if (flag == "/libs:static") { + if (flag == "/libs:static" || flag == "-libs:static") { this->FortranRuntimeDLL = false; return; } |