diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-09-03 15:28:36 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-09-04 10:42:02 +0300 |
commit | 14f7179b852f530d567afb5c6854b52b2d03d711 (patch) | |
tree | e28eb2ca080ca7ea270461004f7f59a0ffe5c50c /tests | |
parent | d3efee5a9016f9af9d85eaaa18815be5b0ed2499 (diff) |
Add a test to ensure that EMSCRIPTEN=1 variable is set in CMake when building.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmake/target_js/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cmake/target_js/CMakeLists.txt b/tests/cmake/target_js/CMakeLists.txt index a1228c73..b39ae2b7 100644 --- a/tests/cmake/target_js/CMakeLists.txt +++ b/tests/cmake/target_js/CMakeLists.txt @@ -18,6 +18,10 @@ if (APPLE) message(FATAL_ERROR "APPLE should not be defined when cross-compiling!") endif() +if (NOT EMSCRIPTEN) + message(FATAL_ERROR "EMSCRIPTEN should be defined when cross-compiling!") +endif() + if (NOT CMAKE_C_SIZEOF_DATA_PTR) message(FATAL_ERROR "CMAKE_C_SIZEOF_DATA_PTR was not defined!") endif() |