aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2017-05-31 20:41:12 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit5359f25458f4f82919546671783403e51efc01a3 (patch)
tree6996fedd780a1af57a4ea43551c3c506b801d457 /host
parentba287c272a19a512acbf9b650dd5775067f9bcdb (diff)
downloaduhd-5359f25458f4f82919546671783403e51efc01a3.tar.gz
uhd-5359f25458f4f82919546671783403e51efc01a3.tar.bz2
uhd-5359f25458f4f82919546671783403e51efc01a3.zip
cmake: Add extra flags to uhd project reduce Windows.h loads
Diffstat (limited to 'host')
-rw-r--r--host/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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