Merge pull request #473 from LaurensVoerman/submit_OT_winver

remove conficting defenition of _WIN32_WINNT in OSG_DETERMINE_WIN_VERSION is ON
This commit is contained in:
OpenSceneGraph git repository 2018-02-12 13:42:47 +00:00 committed by GitHub
commit f9e2fb9d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,9 @@ SET(LIB_NAME OpenThreads)
SET(LIB_PUBLIC_HEADERS ${OpenThreads_PUBLIC_HEADERS})
ADD_DEFINITIONS(-DWIN32_LEAN_AND_MEAN)
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0400)
IF(NOT OSG_DETERMINE_WIN_VERSION)
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0400)
ENDIF(NOT OSG_DETERMINE_WIN_VERSION)
SOURCE_GROUP("Header Files" FILES ${LIB_PUBLIC_HEADERS})
SET_SOURCE_FILES_PROPERTIES(${LIB_PUBLIC_HEADERS} PROPERTIES HEADER_FILE_ONLY ON)