minor fix on CMakeLists for checking MSVC_VERSION

This commit is contained in:
Jinrong Xie 2015-05-26 18:50:57 -07:00
parent 96e89316b6
commit ce15044f73

View File

@ -233,7 +233,11 @@ IF(WIN32)
SET( CMAKE_DEBUG_POSTFIX "d" ) SET( CMAKE_DEBUG_POSTFIX "d" )
ENDIF(MSVC) ENDIF(MSVC)
IF(NOT(MSVC_VERSION LESS "1300")) IF(NOT(MSVC_VERSION LESS "1600"))
# minimum requirement for WM_TOUCH device
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0601)
ADD_DEFINITIONS(-DWINVER=0x0601)
ELSEIF(NOT(MSVC_VERSION LESS "1300"))
# minimum requirement for spaceball device # minimum requirement for spaceball device
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501) ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501)
ADD_DEFINITIONS(-DWINVER=0x0501) ADD_DEFINITIONS(-DWINVER=0x0501)
@ -243,11 +247,6 @@ IF(WIN32)
ADD_DEFINITIONS(-DWINVER=0x0500) ADD_DEFINITIONS(-DWINVER=0x0500)
ENDIF() ENDIF()
IF(NOT(MSVC_VERSION LESS "1600"))
# minimum requirement for WM_TOUCH device
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0601)
ADD_DEFINITIONS(-DWINVER=0x0601)
ENDIF()
ENDIF() ENDIF()
IF(CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCC)