mirror of
https://github.com/CPunch/Laika.git
synced 2025-11-12 16:00:04 +00:00
CMake: Require C11 for each target
This commit is contained in:
@@ -11,6 +11,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
file(GLOB_RECURSE BOTSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c)
|
||||
file(GLOB_RECURSE BOTHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
|
||||
add_executable(LaikaBot ${BOTSOURCE} ${BOTHEADERS})
|
||||
set_property(TARGET LaikaBot PROPERTY C_STANDARD 11)
|
||||
target_link_libraries(LaikaBot PUBLIC LaikaLib util)
|
||||
|
||||
# add the 'DEBUG' preprocessor definition if we're compiling as Debug
|
||||
|
||||
Reference in New Issue
Block a user