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)