Skip to content

Commit

Permalink
Fix setting _IS_CLANG_CL_COMPILER..
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-khropov committed Jan 19, 2024
1 parent d6172a4 commit d5ac776
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmake/global_flags.compiler.msvc.cmake
@@ -1,8 +1,11 @@
set(_IS_CLANG_CL_COMPILER
${CMAKE_CXX_COMPILER_ID} STREQUAL Clang
AND "${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC"
AND "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC"
)
if(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang
AND "${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC"
AND "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")

set(_IS_CLANG_CL_COMPILER true)
else()
set(_IS_CLANG_CL_COMPILER false)
endif()

set(_WARNS_ENABLED
4018 # 'expression' : signed/unsigned mismatch
Expand Down

0 comments on commit d5ac776

Please sign in to comment.