From f1688fd4c0a7aab6dcab83572285bb5b48d72557 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 19 Jan 2024 18:10:58 +0100 Subject: [PATCH] disable MSVC warnings --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4701b8e6..8e65a17d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,10 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") endif() endif() +if(CMAKE_C_COMPILER_ID MATCHES "MSVC") + add_compile_options("/wd4244" "/wd4005" "/wd4996" "/wd4267") +endif() + aux_source_directory(common COMMON_SRC) set(APRILTAG_SRCS apriltag.c apriltag_pose.c apriltag_quad_thresh.c)