From fd403737d25ca5f167845b5a6d0e9adb0a2bb5ff Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Tue, 21 Nov 2023 14:23:59 -0700 Subject: [PATCH] Replace Darwin check with Apple check Darwin excludes iOS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 044168df..eb8e721a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,7 @@ option(ENABLE_RTTI "Enables RTTI") option(ENABLE_EXCEPTIONS "Enables Exceptions") option(ENABLE_OPT "Enables spirv-opt capability if present" ON) -if(MINGW OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")) +if(MINGW OR (APPLE AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")) # Workaround for CMake behavior on Mac OS with gcc, cmake generates -Xarch_* arguments # which gcc rejects option(ENABLE_PCH "Enables Precompiled header")