Use c standard w/o warnings on macOS >=13.3
See itgmania/itgmania#107 for error details.
This commit is contained in:
Vendored
+5
@@ -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)
|
||||
|
||||
Vendored
+7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user