From b726e134412831ff7d283add12516989e9f4f1d9 Mon Sep 17 00:00:00 2001 From: George Evmenov Date: Mon, 6 Nov 2023 22:52:05 +0300 Subject: [PATCH] fix emscripten build on apple do not set Apple specific options when cross compiling to emscripten --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ef4199a42d..c74b29d7bdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ if(POLICY CMP0086) cmake_policy(SET CMP0086 NEW) endif() -if (APPLE AND NOT ANDROID) +if (APPLE AND NOT ANDROID AND NOT EMSCRIPTEN) SET(CMAKE_SIZEOF_VOID_P 4) set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")