summaryrefslogtreecommitdiffstats
path: root/host/CMakeLists.txt
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
committerJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
commit7cd216e967161a0d3a4d7b9bc03583d270ce4de3 (patch)
tree41a492b7009350f29c72e855ca287066ec15e4eb /host/CMakeLists.txt
parent721194ec0f832dd9fa7b905bb9ac7b0a06da975e (diff)
downloaduhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.gz
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.bz2
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.zip
uhd: specify msvc for implementations known only to work on msvc
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r--host/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 3808481bf..7df04995c 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -80,16 +80,21 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX)
IF(MSVC)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/msvc)
- ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501) #minimum version required is windows xp
- ADD_DEFINITIONS(-DNOMINMAX) #disables stupidity and enables std::min and std::max
ADD_DEFINITIONS( #stop all kinds of compatibility warnings
-D_SCL_SECURE_NO_WARNINGS
+ -D_SCL_SECURE_NO_DEPRECATE
-D_CRT_SECURE_NO_WARNINGS
-D_CRT_SECURE_NO_DEPRECATE
+ -D_CRT_NONSTDC_NO_WARNINGS
-D_CRT_NONSTDC_NO_DEPRECATE
)
ENDIF(MSVC)
+IF(WIN32)
+ ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501) #minimum version required is windows xp
+ ADD_DEFINITIONS(-DNOMINMAX) #disables stupidity and enables std::min and std::max
+ENDIF(WIN32)
+
########################################################################
# Setup Boost
########################################################################