From 7552c1df5e8520a4599ea85e87635492fa00b6a8 Mon Sep 17 00:00:00 2001 From: Bohdan Shulyar Date: Fri, 18 Jun 2021 05:42:43 +0300 Subject: [PATCH] Silence useless warning on Windows (#183) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07c0f174..868c5e7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,6 +93,8 @@ endif() if(NOT MSVC) #add_compile_options(-Wempty-body) # GCC/Clang flag add_compile_options(-Wreturn-type) # GCC/Clang flag +else() + add_definitions(-D_CRT_SILENCE_NONCONFORMING_TGMATH_H) endif()