From 5359f25458f4f82919546671783403e51efc01a3 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Wed, 31 May 2017 20:41:12 -0700 Subject: cmake: Add extra flags to uhd project reduce Windows.h loads --- host/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/CMakeLists.txt') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 7d0b92000..61df25579 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -225,6 +225,8 @@ ENDIF() IF(MSVC) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/cmake/msvc) ADD_DEFINITIONS( #stop all kinds of compatibility warnings + -DWIN32_LEAN_AND_MEAN + -DVC_EXTRALEAN -D_SCL_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -- cgit v1.2.3