From 173bfbf7886608a4a7abbfac6a42ac4bf4a3432d Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 20 Sep 2020 16:14:20 +0100 Subject: New upstream version 1.5.0 --- examples/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'examples/CMakeLists.txt') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 1203592..7228860 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -3,6 +3,7 @@ # license that can be found in the LICENSE file. list(APPEND COMPAT_SOURCES + ../openbsd-compat/clock_gettime.c ../openbsd-compat/getopt_long.c ../openbsd-compat/strlcat.c ../openbsd-compat/strlcpy.c @@ -15,6 +16,13 @@ endif() # drop -rdynamic set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +# enable -Wconversion -Wsign-conversion +if(NOT MSVC) + set_source_files_properties(assert.c cred.c info.c manifest.c reset.c + retries.c setpin.c util.c PROPERTIES COMPILE_FLAGS + "-Wconversion -Wsign-conversion") +endif() + # manifest add_executable(manifest manifest.c ${COMPAT_SOURCES}) target_link_libraries(manifest fido2) @@ -42,3 +50,11 @@ target_link_libraries(setpin fido2) # retries add_executable(retries retries.c ${COMPAT_SOURCES}) target_link_libraries(retries fido2) + +# select +add_executable(select select.c ${COMPAT_SOURCES}) +target_link_libraries(select fido2) +if(MINGW) + # needed for nanosleep() in mingw + target_link_libraries(select winpthread) +endif() -- cgit v1.2.3