Skip to content

Commit

Permalink
fix emscripten build on apple
Browse files Browse the repository at this point in the history
do not set Apple specific options when cross compiling to emscripten
  • Loading branch information
Altren authored and paroj committed Nov 6, 2023
1 parent 888de72 commit b726e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b726e13

Please sign in to comment.