Set bin2h to C90 in the CMake file
Done to match the Makefile
This commit is contained in:
parent
21cef10e4b
commit
7db42b0b72
1 changed files with 7 additions and 0 deletions
|
@ -264,6 +264,13 @@ endif()
|
||||||
|
|
||||||
# Magic to convert resources to header files
|
# Magic to convert resources to header files
|
||||||
add_executable(bin2h "src/misc/bin2h.c")
|
add_executable(bin2h "src/misc/bin2h.c")
|
||||||
|
|
||||||
|
set_target_properties(bin2h PROPERTIES
|
||||||
|
C_STANDARD 90
|
||||||
|
C_STANDARD_REQUIRED ON
|
||||||
|
C_EXTENSIONS OFF
|
||||||
|
)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_definitions(bin2h PRIVATE _CRT_SECURE_NO_WARNINGS) # Shut up those stupid warnings
|
target_compile_definitions(bin2h PRIVATE _CRT_SECURE_NO_WARNINGS) # Shut up those stupid warnings
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Reference in a new issue