From 7db42b0b725f1b8cd37f1e40596875933c4133cb Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 23 May 2019 11:36:41 +0000 Subject: [PATCH] Set bin2h to C90 in the CMake file Done to match the Makefile --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 949f10e8..59b3eab4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,6 +264,13 @@ endif() # Magic to convert resources to header files add_executable(bin2h "src/misc/bin2h.c") + +set_target_properties(bin2h PROPERTIES + C_STANDARD 90 + C_STANDARD_REQUIRED ON + C_EXTENSIONS OFF +) + if(MSVC) target_compile_definitions(bin2h PRIVATE _CRT_SECURE_NO_WARNINGS) # Shut up those stupid warnings endif()