1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-08 08:50:12 +00:00

CMake: Require C11 for each target

This commit is contained in:
2022-03-14 01:11:13 -05:00
parent 29129923b3
commit 6a5afb18a0
4 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
file(GLOB_RECURSE SHELLSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c)
file(GLOB_RECURSE SHELLHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
add_executable(LaikaShell ${SHELLSOURCE} ${SHELLHEADERS})
set_property(TARGET LaikaShell PROPERTY C_STANDARD 11)
target_link_libraries(LaikaShell PUBLIC LaikaLib)
# add the 'DEBUG' preprocessor definition if we're compiling as Debug