diff options
author | Corentin Wallez <cwallez@chromium.org> | 2019-10-09 18:45:11 +0300 |
---|---|---|
committer | Steven Perron <stevenperron@google.com> | 2019-10-09 18:45:11 +0300 |
commit | df15a4a3cbda6bde5e4bbd43492e17ac7752cd68 (patch) | |
tree | b70be7147c52ac6aac548597f36dfd4715af08d1 /CMakeLists.txt | |
parent | c3ca04741945c332ddbeb7d7125dbae2809b7195 (diff) |
CMake: Add support for building with emscripten (#2948)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b95b714a9..53750f641 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,8 @@ option(SPIRV_ALLOW_TIMERS "Allow timers via clock_gettime on supported platforms if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") add_definitions(-DSPIRV_LINUX) set(SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS}) +elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Emscripten") + add_definitions(-DSPIRV_EMSCRIPTEN) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") add_definitions(-DSPIRV_WINDOWS) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN") |