Updates based on @msaft's comments

This commit is contained in:
Thomas Jensen 2023-11-13 09:30:15 +01:00
parent f3b4e020e1
commit 7e5751752e
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
3 changed files with 9 additions and 7 deletions

View File

@ -50,5 +50,6 @@
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.renderWhitespace": "boundary"
}
},
"cmake.configureOnOpen": true
}

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.23)
# Build options options
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

View File

@ -26,17 +26,18 @@ set(SOURCES
main.c
)
# -----------------------------------------------------------------------------
add_executable(${TARGET}
${SOURCES}
)
if (HAVE_STRINGOP_OVERFLOW)
target_compile_options(${TARGET}
PRIVATE -Wno-stringop-overflow
)
endif (HAVE_STRINGOP_OVERFLOW)
# -----------------------------------------------------------------------------
add_executable(${TARGET}
${SOURCES}
)
target_link_libraries(${TARGET}
PRIVATE
${SUT}