From 21a6b608de3e5bf90e70f2876e2525245911ef00 Mon Sep 17 00:00:00 2001 From: Brecht Sanders Date: Wed, 8 Feb 2023 20:44:59 +0100 Subject: [PATCH] Fix to support MinGW-w64 MinGW/MinGW-w64 is actually a GCC compiler. This fix treats it like a GNU-like Compiler. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3514b2efe7..03bea1004e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,7 +305,7 @@ IF (WIN32) set(EMBREE_SYCL_SUPPORT OFF) MESSAGE("-- Intel compiler detected") INCLUDE (intel) - ELSEIF(${CMAKE_CXX_COMPILER_FRONTEND_VARIANT} MATCHES "GNU") + ELSEIF(${CMAKE_CXX_COMPILER_FRONTEND_VARIANT} MATCHES "GNU" OR MINGW) set(EMBREE_SYCL_SUPPORT OFF) MESSAGE("-- GNU-like compiler detected") INCLUDE(gnu)