From 98a0653d39e1d316e7e4a61fd1518f6ac6406c58 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 7 Dec 2023 19:39:29 +0000 Subject: [PATCH] Update --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 551282f1..90c5e515 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,12 @@ target_sources(tinydtls PRIVATE target_include_directories(tinydtls PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) target_compile_definitions(tinydtls PUBLIC DTLSv12 WITH_SHA256 SHA2_USE_INTTYPES_H DTLS_CHECK_CONTENTTYPE) +if(MINGW) +add_compile_options( + $<$,$>:-Wno-format> + $<$,$>:-Wno-format-security>) +endif() + if(CMAKE_GENERATOR MATCHES "Visual Studio") option(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS "Export all symbols when compiling to a .dll" ON) target_compile_options(tinydtls PRIVATE -Wall)