BuildOptions.cmake 741 B

123456789101112131415161718
  1. if(${PLATFORM} MATCHES "Desktop" AND APPLE)
  2. if(MACOS_FATLIB)
  3. if (CMAKE_OSX_ARCHITECTURES)
  4. message(FATAL_ERROR "User supplied -DCMAKE_OSX_ARCHITECTURES overrides -DMACOS_FATLIB=ON")
  5. else()
  6. set(CMAKE_OSX_ARCHITECTURES "x86_64;i386")
  7. endif()
  8. endif()
  9. endif()
  10. # This helps support the case where emsdk toolchain file is used
  11. # either by setting it with -DCMAKE_TOOLCHAIN_FILE=<path_to_emsdk>/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
  12. # or by using "emcmake cmake -B build -S ." as described in https://emscripten.org/docs/compiling/Building-Projects.html
  13. if(EMSCRIPTEN)
  14. SET(PLATFORM Web CACHE STRING "Forcing PLATFORM_WEB because EMSCRIPTEN was detected")
  15. endif()
  16. # vim: ft=cmake