Browse Source

tests: suppress -Wshorten-64-to32 for the spine-c runtime

Andre Weissflog 2 years ago
parent
commit
b2e36e4c14
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/CMakeLists.txt

+ 4 - 0
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)