From dc21523705eb7adc6eddd4731132d4c299c36e7c Mon Sep 17 00:00:00 2001 From: Gabor Nagy <7298930+NagyGa1@users.noreply.github.com> Date: Wed, 17 Jan 2024 08:43:03 +0800 Subject: [PATCH] Accept CMAKE_SYSTEM_NAME "Windows" for clang (MSYS2 CLANG64 support) Signed-off-by: Gabor Nagy <7298930+NagyGa1@users.noreply.github.com> --- runtime/Cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/CMakeLists.txt b/runtime/Cpp/CMakeLists.txt index 7efb19c314..e5da9cbbb3 100644 --- a/runtime/Cpp/CMakeLists.txt +++ b/runtime/Cpp/CMakeLists.txt @@ -114,7 +114,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND ANDROID) # and without -stdlib=libc++ cxxflags elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++") -elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") ) +elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "Windows") ) execute_process( COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE CLANG_VERSION) if(NOT (CLANG_VERSION VERSION_GREATER 4.2.1 OR CLANG_VERSION VERSION_EQUAL 4.2.1))