Fix gcc warning by setting the C lang version
This commit is contained in:
parent
0bf296d46a
commit
c62aacd250
@ -1,4 +1,7 @@
|
|||||||
if(NOT DEFINED DISABLE_DYNAMIC)
|
if(NOT DEFINED DISABLE_DYNAMIC)
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
set_source_files_properties(sq.c PROPERTIES COMPILE_FLAGS -std=c99)
|
||||||
|
endif()
|
||||||
add_executable(sq sq.c)
|
add_executable(sq sq.c)
|
||||||
set_target_properties(sq PROPERTIES LINKER_LANGUAGE C)
|
set_target_properties(sq PROPERTIES LINKER_LANGUAGE C)
|
||||||
target_link_libraries(sq squirrel sqstdlib)
|
target_link_libraries(sq squirrel sqstdlib)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user