summaryrefslogtreecommitdiff
path: root/libs/raylib/cmake/emscripten.cmake
blob: 621ae7875712e79ae3a7994fd0280279b423ac9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SET(CMAKE_SYSTEM_NAME Linux)

SET(CMAKE_C_COMPILER   emcc)
SET(CMAKE_CXX_COMPILER em++)
if(NOT DEFINED CMAKE_AR)
  find_program(CMAKE_AR NAMES emar)
endif()
if(NOT DEFINED CMAKE_RANLIB)
  find_program(CMAKE_RANLIB NAMES emranlib)
endif()

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)