Set bin2h to C90 in the CMake file

Done to match the Makefile
This commit is contained in:
Clownacy 2019-05-23 11:36:41 +00:00
parent 21cef10e4b
commit 7db42b0b72

View file

@ -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()