llvm.org GIT mirror llvm / a8ea812
[benchmark] Fix flags used to compile benchmark library with clang-cl `MSVC` is true for clang-cl, but `"${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC"` is false, so we would enable -Wall, which means -Weverything with clang-cl, and we get tons of undesired warnings. Use the simpler condition to fix things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341717 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 11 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8989 add_required_cxx_compiler_flag(-m32)
9090 endif()
9191
92 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
92 if (MSVC)
9393 # Turn compiler warnings up to 11
9494 string(REGEX REPLACE "[-/]W[1-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
9595 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")