PSP2: Add -Wno-format to remove all of the format string warnings

This commit is contained in:
Jeffrey Pfau 2015-07-08 19:19:58 -07:00
parent c4800792ec
commit d60e4972e9
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*")
enable_language(ASM)
endif()
if(PSP2)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format")
endif()
include(CheckFunctionExists)
check_function_exists(strdup HAVE_STRDUP)
check_function_exists(strndup HAVE_STRNDUP)