diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-11-05 14:40:39 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2022-11-05 14:40:39 +0100 |
| commit | b2e36e4c148218f52587689ec8e9c165d2c98d1d (patch) | |
| tree | 597918eb3dcfc6ec99738324ce50a0a148b24d4c /tests | |
| parent | 7869b6e75eb054505780c9c3c8bf6cb827fed486 (diff) | |
tests: suppress -Wshorten-64-to32 for the spine-c runtime
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 62df858d..5b9912ad 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -29,6 +29,7 @@ else() message(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_NAME") endif() +message(">> CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}") message(">> SOKOL_BACKEND: ${SOKOL_BACKEND}") message(">> SOKOL_FORCE_EGL: ${SOKOL_FORCE_EGL}") if (OSX_IOS OR OSX_MACOS) @@ -213,6 +214,9 @@ target_include_directories(spine SYSTEM PUBLIC ext/spine-runtimes/spine-c/spine- if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") target_compile_options(spine PRIVATE /wd4267 /wd4244) # conversion from 'x' to 'y' possible loss of data endif() +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + target_compile_options(spine PRIVATE -Wno-shorten-64-to-32) +endif() add_library(nuklear ext/nuklear.c) |