use C++ compilation with clang-cl (as well as msvc) on Windows

This commit is contained in:
daanx 2025-04-02 10:50:36 -07:00
parent 5a58df6534
commit d767dbfbb4

View file

@ -173,7 +173,8 @@ if(CMAKE_C_COMPILER_ID MATCHES "Intel")
list(APPEND mi_cflags -Wall) list(APPEND mi_cflags -Wall)
endif() endif()
if(CMAKE_C_COMPILER_ID MATCHES "MSVC|Intel") # force C++ compilation with msvc or clang-cl to use modern C++ atomics
if(CMAKE_C_COMPILER_ID MATCHES "MSVC|Intel" OR MI_CLANG_CL)
set(MI_USE_CXX "ON") set(MI_USE_CXX "ON")
endif() endif()