[cmake] Move blocks out of redundant else( MSVC ); NFC

Address post-commit comment on D66256 regarding the `else( MSVC )` block
containing only blocks guarded with `LLVM_COMPILER_IS_GCC_COMPATIBLE`,
which would imply `NOT MSVC`.

llvm-svn: 369221
This commit is contained in:
Hubert Tong 2019-08-18 22:02:24 +00:00
parent 45e598d135
commit c313944da6
1 changed files with 63 additions and 64 deletions

View File

@ -431,8 +431,8 @@ if( MSVC )
endif()
endif()
endif()
endif( MSVC )
else( MSVC )
# Warnings-as-errors handling for GCC-compatible compilers:
if ( LLVM_COMPILER_IS_GCC_COMPATIBLE )
append_if(LLVM_ENABLE_WERROR "-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
@ -495,7 +495,6 @@ else( MSVC )
message(FATAL_ERROR "LLVM_ENABLE_MODULES is not supported by this compiler")
endif()
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE AND LLVM_ENABLE_MODULES )
endif( MSVC )
if (MSVC)
if (NOT CLANG_CL)