diff --git a/CMakeLists.txt b/CMakeLists.txt index b5441b90b..d1ca06ad9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -526,6 +526,17 @@ file(GLOB SOURCE_FILES ${SDL2_SOURCE_DIR}/src/video/*.c ${SDL2_SOURCE_DIR}/src/video/yuv2rgb/*.c) +if(USE_INTELCC) + # warning #39: division by zero + # warning #239: floating point underflow + # warning #264: floating-point value does not fit in required floating-point type + # warning #13203: No EMMS instruction before call to function + set_property(SOURCE "${SDL2_SOURCE_DIR}/src/libm/e_exp.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -wd239 -wd264") + set_property(SOURCE "${SDL2_SOURCE_DIR}/src/libm/e_log.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -wd39") + set_property(SOURCE "${SDL2_SOURCE_DIR}/src/libm/e_log10.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -wd39") + set_property(SOURCE "${SDL2_SOURCE_DIR}/src/video/SDL_blit_copy.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -wd13203") +endif() + set(SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED 1) if(SDL_ASSERTIONS MATCHES "^(auto|)$")