Use c standard w/o warnings on macOS >=13.3

See itgmania/itgmania#107 for error details.
This commit is contained in:
Ben Kirzhner
2023-05-22 12:37:27 -07:00
committed by teejusb
parent c0b6ea633c
commit 0c5160dd1c
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -471,6 +471,11 @@ endif()
if(APPLE)
set_property(TARGET "tomcrypt" PROPERTY XCODE_ATTRIBUTE_GCC_NO_COMMON_BLOCKS "YES")
# Fixes build failures due to warnings on macOS >= 13.3
# See itgmania/itgmania#107 for details
set_property(TARGET "tomcrypt" PROPERTY C_STANDARD 90)
set_property(TARGET "tomcrypt" PROPERTY C_STANDARD_REQUIRED ON)
endif()
if(MSVC)
target_compile_definitions("tomcrypt" PRIVATE _CRT_SECURE_NO_WARNINGS)
+7
View File
@@ -32,6 +32,13 @@ add_library("zlib" STATIC ${ZLIB_SRC} ${ZLIB_HPP})
set_property(TARGET "zlib" PROPERTY FOLDER "External Libraries")
if(APPLE)
# Fixes build failures due to warnings on macOS >= 13.3
# See itgmania/itgmania#107 for details
set_property(TARGET "zlib" PROPERTY C_STANDARD 90)
set_property(TARGET "zlib" PROPERTY C_STANDARD_REQUIRED ON)
endif(APPLE)
disable_project_warnings("zlib")
if(MSVC)