|
|
@ -9,7 +9,7 @@
|
|
|
|
IF(WINSDK_FOUND)
|
|
|
|
IF(WINSDK_FOUND)
|
|
|
|
# If Windows SDK already found, skip it
|
|
|
|
# If Windows SDK already found, skip it
|
|
|
|
RETURN()
|
|
|
|
RETURN()
|
|
|
|
ENDIF(WINSDK_FOUND)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
# Values can be CURRENT or any existing versions 7.1, 8.0A, etc...
|
|
|
|
# Values can be CURRENT or any existing versions 7.1, 8.0A, etc...
|
|
|
|
SET(WINSDK_VERSION "CURRENT" CACHE STRING "Windows SDK version to prefer")
|
|
|
|
SET(WINSDK_VERSION "CURRENT" CACHE STRING "Windows SDK version to prefer")
|
|
|
@ -25,8 +25,8 @@ MACRO(DETECT_WINSDK_VERSION_HELPER _ROOT _VERSION)
|
|
|
|
ENDIF(NOT WindowsSDK_FIND_QUIETLY)
|
|
|
|
ENDIF(NOT WindowsSDK_FIND_QUIETLY)
|
|
|
|
ELSE(WINSDK${_VERSION}_DIR AND NOT WINSDK${_VERSION}_DIR STREQUAL "/registry")
|
|
|
|
ELSE(WINSDK${_VERSION}_DIR AND NOT WINSDK${_VERSION}_DIR STREQUAL "/registry")
|
|
|
|
SET(WINSDK${_VERSION}_DIR "")
|
|
|
|
SET(WINSDK${_VERSION}_DIR "")
|
|
|
|
ENDIF(WINSDK${_VERSION}_DIR AND NOT WINSDK${_VERSION}_DIR STREQUAL "/registry")
|
|
|
|
ENDIF()
|
|
|
|
ENDMACRO(DETECT_WINSDK_VERSION_HELPER)
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(DETECT_WINSDK_VERSION _VERSION)
|
|
|
|
MACRO(DETECT_WINSDK_VERSION _VERSION)
|
|
|
|
SET(WINSDK${_VERSION}_FOUND OFF)
|
|
|
|
SET(WINSDK${_VERSION}_FOUND OFF)
|
|
|
@ -34,8 +34,8 @@ MACRO(DETECT_WINSDK_VERSION _VERSION)
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK${_VERSION}_FOUND)
|
|
|
|
IF(NOT WINSDK${_VERSION}_FOUND)
|
|
|
|
DETECT_WINSDK_VERSION_HELPER("HKEY_LOCAL_MACHINE" ${_VERSION})
|
|
|
|
DETECT_WINSDK_VERSION_HELPER("HKEY_LOCAL_MACHINE" ${_VERSION})
|
|
|
|
ENDIF(NOT WINSDK${_VERSION}_FOUND)
|
|
|
|
ENDIF()
|
|
|
|
ENDMACRO(DETECT_WINSDK_VERSION)
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
|
|
|
|
SET(WINSDK_VERSIONS "8.1" "8.0" "7.1" "7.1A" "7.0" "7.0A" "6.1" "6.0" "6.0A")
|
|
|
|
SET(WINSDK_VERSIONS "8.1" "8.0" "7.1" "7.1A" "7.0" "7.0A" "6.1" "6.0" "6.0A")
|
|
|
|
SET(WINSDK_DETECTED_VERSIONS)
|
|
|
|
SET(WINSDK_DETECTED_VERSIONS)
|
|
|
@ -46,8 +46,8 @@ FOREACH(_VERSION ${WINSDK_VERSIONS})
|
|
|
|
|
|
|
|
|
|
|
|
IF(WINSDK${_VERSION}_FOUND)
|
|
|
|
IF(WINSDK${_VERSION}_FOUND)
|
|
|
|
LIST(APPEND WINSDK_DETECTED_VERSIONS ${_VERSION})
|
|
|
|
LIST(APPEND WINSDK_DETECTED_VERSIONS ${_VERSION})
|
|
|
|
ENDIF(WINSDK${_VERSION}_FOUND)
|
|
|
|
ENDIF()
|
|
|
|
ENDFOREACH(_VERSION)
|
|
|
|
ENDFOREACH()
|
|
|
|
|
|
|
|
|
|
|
|
SET(WINSDK_SUFFIX)
|
|
|
|
SET(WINSDK_SUFFIX)
|
|
|
|
|
|
|
|
|
|
|
@ -58,19 +58,19 @@ ELSEIF(TARGET_X64)
|
|
|
|
SET(WINSDK_SUFFIX "x64")
|
|
|
|
SET(WINSDK_SUFFIX "x64")
|
|
|
|
ELSEIF(TARGET_X86)
|
|
|
|
ELSEIF(TARGET_X86)
|
|
|
|
SET(WINSDK8_SUFFIX "x86")
|
|
|
|
SET(WINSDK8_SUFFIX "x86")
|
|
|
|
ENDIF(TARGET_ARM)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
SET(WINSDKCURRENT_VERSION_INCLUDE $ENV{INCLUDE})
|
|
|
|
SET(WINSDKCURRENT_VERSION_INCLUDE $ENV{INCLUDE})
|
|
|
|
|
|
|
|
|
|
|
|
IF(WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
IF(WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
FILE(TO_CMAKE_PATH "${WINSDKCURRENT_VERSION_INCLUDE}" WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
FILE(TO_CMAKE_PATH "${WINSDKCURRENT_VERSION_INCLUDE}" WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
ENDIF(WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
SET(WINSDKENV_DIR $ENV{WINSDK_DIR})
|
|
|
|
SET(WINSDKENV_DIR $ENV{WINSDK_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDKENV_DIR)
|
|
|
|
IF(NOT WINSDKENV_DIR)
|
|
|
|
SET(WINSDKENV_DIR $ENV{WindowsSDKDir})
|
|
|
|
SET(WINSDKENV_DIR $ENV{WindowsSDKDir})
|
|
|
|
ENDIF(NOT WINSDKENV_DIR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
IF(WINSDK_DIR AND NOT WINSDK_VERSION)
|
|
|
|
IF(WINSDK_DIR AND NOT WINSDK_VERSION)
|
|
|
@ -88,8 +88,8 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "8.1")
|
|
|
|
SET(WINSDK_VERSION "8.1")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 8.0
|
|
|
|
# Look for Windows SDK 8.0
|
|
|
@ -97,8 +97,8 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "8.0")
|
|
|
|
SET(WINSDK_VERSION "8.0")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 7.0
|
|
|
|
# Look for Windows SDK 7.0
|
|
|
@ -123,14 +123,14 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
SET(WINSDK_VERSION "7.1")
|
|
|
|
SET(WINSDK_VERSION "7.1")
|
|
|
|
ELSEIF(_WINSDKVER STREQUAL "0601")
|
|
|
|
ELSEIF(_WINSDKVER STREQUAL "0601")
|
|
|
|
SET(WINSDK_VERSION "7.0A")
|
|
|
|
SET(WINSDK_VERSION "7.0A")
|
|
|
|
ELSE(_WINSDKVER STREQUAL "06010000")
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Can't determine Windows SDK version with NTDDI_MAXVER 0x${_WINSDKVER}")
|
|
|
|
MESSAGE(FATAL_ERROR "Can't determine Windows SDK version with NTDDI_MAXVER 0x${_WINSDKVER}")
|
|
|
|
ENDIF(_WINSDKVER STREQUAL "06010000")
|
|
|
|
ENDIF()
|
|
|
|
ELSE(_WINSDKVER_FILE)
|
|
|
|
ELSE()
|
|
|
|
SET(WINSDK_VERSION "7.0")
|
|
|
|
SET(WINSDK_VERSION "7.0")
|
|
|
|
ENDIF(_WINSDKVER_FILE)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 6.0
|
|
|
|
# Look for Windows SDK 6.0
|
|
|
@ -138,8 +138,8 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "6.0")
|
|
|
|
SET(WINSDK_VERSION "6.0")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 5.2
|
|
|
|
# Look for Windows SDK 5.2
|
|
|
@ -147,8 +147,8 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "5.2")
|
|
|
|
SET(WINSDK_VERSION "5.2")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 5.1
|
|
|
|
# Look for Windows SDK 5.1
|
|
|
@ -156,8 +156,8 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "5.1")
|
|
|
|
SET(WINSDK_VERSION "5.1")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
# Look for Windows SDK 5.0
|
|
|
|
# Look for Windows SDK 5.0
|
|
|
@ -165,13 +165,13 @@ MACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
|
|
|
|
|
|
|
|
IF(_CONTENT)
|
|
|
|
IF(_CONTENT)
|
|
|
|
SET(WINSDK_VERSION "5.0")
|
|
|
|
SET(WINSDK_VERSION "5.0")
|
|
|
|
ENDIF(_CONTENT)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
ELSE(_MSI_FILE)
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Unable to find Msi.h in ${WINSDK_DIR}")
|
|
|
|
MESSAGE(FATAL_ERROR "Unable to find Msi.h in ${WINSDK_DIR}")
|
|
|
|
ENDIF(_MSI_FILE)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(WINSDK_DIR AND NOT WINSDK_VERSION)
|
|
|
|
ENDIF()
|
|
|
|
ENDMACRO(FIND_WINSDK_VERSION_HEADERS)
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(USE_CURRENT_WINSDK)
|
|
|
|
MACRO(USE_CURRENT_WINSDK)
|
|
|
|
SET(WINSDK_DIR "")
|
|
|
|
SET(WINSDK_DIR "")
|
|
|
@ -185,7 +185,7 @@ MACRO(USE_CURRENT_WINSDK)
|
|
|
|
${WINSDKENV_DIR}/Include/um
|
|
|
|
${WINSDKENV_DIR}/Include/um
|
|
|
|
${WINSDKENV_DIR}/Include
|
|
|
|
${WINSDKENV_DIR}/Include
|
|
|
|
)
|
|
|
|
)
|
|
|
|
ENDIF(WINSDKENV_DIR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
# Use INCLUDE environment variable
|
|
|
|
# Use INCLUDE environment variable
|
|
|
|
IF(NOT WINSDK_DIR AND WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
IF(NOT WINSDK_DIR AND WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
@ -197,9 +197,9 @@ MACRO(USE_CURRENT_WINSDK)
|
|
|
|
STRING(REGEX REPLACE "/(include|INCLUDE|Include)(.*)" "" WINSDK_DIR ${_INCLUDE})
|
|
|
|
STRING(REGEX REPLACE "/(include|INCLUDE|Include)(.*)" "" WINSDK_DIR ${_INCLUDE})
|
|
|
|
MESSAGE(STATUS "Found Windows SDK in INCLUDE environment variable: ${WINSDK_DIR}")
|
|
|
|
MESSAGE(STATUS "Found Windows SDK in INCLUDE environment variable: ${WINSDK_DIR}")
|
|
|
|
BREAK()
|
|
|
|
BREAK()
|
|
|
|
ENDIF(EXISTS ${_INCLUDE}/Windows.h)
|
|
|
|
ENDIF()
|
|
|
|
ENDFOREACH(_INCLUDE)
|
|
|
|
ENDFOREACH()
|
|
|
|
ENDIF(NOT WINSDK_DIR AND WINSDKCURRENT_VERSION_INCLUDE)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(WINSDK_DIR)
|
|
|
|
IF(WINSDK_DIR)
|
|
|
|
# Compare WINSDK_DIR with registered Windows SDKs
|
|
|
|
# Compare WINSDK_DIR with registered Windows SDKs
|
|
|
@ -208,11 +208,11 @@ MACRO(USE_CURRENT_WINSDK)
|
|
|
|
SET(WINSDK_VERSION ${_VERSION})
|
|
|
|
SET(WINSDK_VERSION ${_VERSION})
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
BREAK()
|
|
|
|
BREAK()
|
|
|
|
ENDIF(WINSDK_DIR STREQUAL "${WINSDK${_VERSION}_DIR}")
|
|
|
|
ENDIF()
|
|
|
|
ENDFOREACH(_VERSION)
|
|
|
|
ENDFOREACH()
|
|
|
|
|
|
|
|
|
|
|
|
FIND_WINSDK_VERSION_HEADERS()
|
|
|
|
FIND_WINSDK_VERSION_HEADERS()
|
|
|
|
ENDIF(WINSDK_DIR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WINSDK_DIR)
|
|
|
|
IF(NOT WINSDK_DIR)
|
|
|
|
# Use Windows SDK versions installed with VC++ when possible
|
|
|
|
# Use Windows SDK versions installed with VC++ when possible
|
|
|
@ -223,19 +223,19 @@ MACRO(USE_CURRENT_WINSDK)
|
|
|
|
ELSEIF(MSVC10)
|
|
|
|
ELSEIF(MSVC10)
|
|
|
|
IF(NOT TARGET_X64 OR NOT MSVC_EXPRESS)
|
|
|
|
IF(NOT TARGET_X64 OR NOT MSVC_EXPRESS)
|
|
|
|
SET(WINSDK_VERSION "7.0A")
|
|
|
|
SET(WINSDK_VERSION "7.0A")
|
|
|
|
ENDIF(NOT TARGET_X64 OR NOT MSVC_EXPRESS)
|
|
|
|
ENDIF()
|
|
|
|
ELSEIF(MSVC90)
|
|
|
|
ELSEIF(MSVC90)
|
|
|
|
IF(NOT MSVC_EXPRESS)
|
|
|
|
IF(NOT MSVC_EXPRESS)
|
|
|
|
SET(WINSDK_VERSION "6.0A")
|
|
|
|
SET(WINSDK_VERSION "6.0A")
|
|
|
|
ENDIF(NOT MSVC_EXPRESS)
|
|
|
|
ENDIF()
|
|
|
|
ELSEIF(MSVC80)
|
|
|
|
ELSEIF(MSVC80)
|
|
|
|
IF(NOT MSVC_EXPRESS)
|
|
|
|
IF(NOT MSVC_EXPRESS)
|
|
|
|
# TODO: fix this version
|
|
|
|
# TODO: fix this version
|
|
|
|
SET(WINSDK_VERSION "5.2A")
|
|
|
|
SET(WINSDK_VERSION "5.2A")
|
|
|
|
ENDIF(NOT MSVC_EXPRESS)
|
|
|
|
ENDIF()
|
|
|
|
ELSE(MSVC12)
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Your compiler is either too old or too recent, please update this CMake module.")
|
|
|
|
MESSAGE(FATAL_ERROR "Your compiler is either too old or too recent, please update this CMake module.")
|
|
|
|
ENDIF(MSVC12)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
# Use installed Windows SDK
|
|
|
|
# Use installed Windows SDK
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
|
IF(NOT WINSDK_VERSION)
|
|
|
@ -262,27 +262,27 @@ MACRO(USE_CURRENT_WINSDK)
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
SET(WINSDK_DIR "${WINSDK${WINSDK_VERSION}_DIR}")
|
|
|
|
SET(WINSDK_DIR "${WINSDK${WINSDK_VERSION}_DIR}")
|
|
|
|
BREAK()
|
|
|
|
BREAK()
|
|
|
|
ENDIF(WINSDK_VERSION STREQUAL _VERSION)
|
|
|
|
ENDIF()
|
|
|
|
ENDFOREACH(_VERSION)
|
|
|
|
ENDFOREACH()
|
|
|
|
ENDIF(NOT WINSDK_DIR)
|
|
|
|
ENDIF()
|
|
|
|
ENDMACRO(USE_CURRENT_WINSDK)
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
|
|
|
|
IF(WINSDK_VERSION STREQUAL "CURRENT")
|
|
|
|
IF(WINSDK_VERSION STREQUAL "CURRENT")
|
|
|
|
USE_CURRENT_WINSDK()
|
|
|
|
USE_CURRENT_WINSDK()
|
|
|
|
ELSE(WINSDK_VERSION STREQUAL "CURRENT")
|
|
|
|
ELSE()
|
|
|
|
IF(WINSDK${WINSDK_VERSION}_FOUND)
|
|
|
|
IF(WINSDK${WINSDK_VERSION}_FOUND)
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
SET(WINSDK_VERSION_FULL "${WINSDK${WINSDK_VERSION}_VERSION_FULL}")
|
|
|
|
SET(WINSDK_DIR "${WINSDK${WINSDK_VERSION}_DIR}")
|
|
|
|
SET(WINSDK_DIR "${WINSDK${WINSDK_VERSION}_DIR}")
|
|
|
|
ELSE(WINSDK${WINSDK_VERSION}_FOUND)
|
|
|
|
ELSE()
|
|
|
|
USE_CURRENT_WINSDK()
|
|
|
|
USE_CURRENT_WINSDK()
|
|
|
|
ENDIF(WINSDK${WINSDK_VERSION}_FOUND)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(WINSDK_VERSION STREQUAL "CURRENT")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(WINSDK_DIR)
|
|
|
|
IF(WINSDK_DIR)
|
|
|
|
MESSAGE(STATUS "Using Windows SDK ${WINSDK_VERSION}")
|
|
|
|
MESSAGE(STATUS "Using Windows SDK ${WINSDK_VERSION}")
|
|
|
|
ELSE(WINSDK_DIR)
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Unable to find Windows SDK!")
|
|
|
|
MESSAGE(FATAL_ERROR "Unable to find Windows SDK!")
|
|
|
|
ENDIF(WINSDK_DIR)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
# directory where Win32 headers are found
|
|
|
|
# directory where Win32 headers are found
|
|
|
|
FIND_PATH(WINSDK_INCLUDE_DIR Windows.h
|
|
|
|
FIND_PATH(WINSDK_INCLUDE_DIR Windows.h
|
|
|
@ -339,9 +339,9 @@ IF(WINSDK_INCLUDE_DIR)
|
|
|
|
# Fix for using Windows SDK 7.1 with Visual C++ 2012
|
|
|
|
# Fix for using Windows SDK 7.1 with Visual C++ 2012
|
|
|
|
IF(WINSDK_VERSION STREQUAL "7.1" AND MSVC11)
|
|
|
|
IF(WINSDK_VERSION STREQUAL "7.1" AND MSVC11)
|
|
|
|
ADD_DEFINITIONS(-D_USING_V110_SDK71_)
|
|
|
|
ADD_DEFINITIONS(-D_USING_V110_SDK71_)
|
|
|
|
ENDIF(WINSDK_VERSION STREQUAL "7.1" AND MSVC11)
|
|
|
|
ENDIF()
|
|
|
|
ELSE(WINSDK_INCLUDE_DIR)
|
|
|
|
ELSE()
|
|
|
|
IF(NOT WindowsSDK_FIND_QUIETLY)
|
|
|
|
IF(NOT WindowsSDK_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Warning: Unable to find Windows SDK!")
|
|
|
|
MESSAGE(STATUS "Warning: Unable to find Windows SDK!")
|
|
|
|
ENDIF(NOT WindowsSDK_FIND_QUIETLY)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF(WINSDK_INCLUDE_DIR)
|
|
|
|
ENDIF()
|
|
|
|