Merge branch 'core4' into feature/quick-start-py

feature/quick-start-py
kaetemi 3 years ago
commit 4555c7a934
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -45,12 +45,20 @@ ELSE()
IF(MSVC_VERSION LESS 1920) IF(MSVC_VERSION LESS 1920)
SET(_NAME "2017") SET(_NAME "2017")
ELSE() ELSEIF(MSVC_VERSION LESS 1930)
SET(_NAME "2019") SET(_NAME "2019")
ELSE()
SET(_NAME "2022")
ENDIF() ENDIF()
STRING(REGEX REPLACE "/MSVC/.+" "/MSVC" VC_DIR ${_COMPILER}) STRING(REGEX REPLACE "/MSVC/.+" "/MSVC" VC_DIR ${_COMPILER})
IF(DEFINED ENV{VCToolsVersion})
SET(MSVC_TOOLCHAIN_VERSION $ENV{VCToolsVersion})
ELSE()
FILE(GLOB MSVC_TOOLCHAIN_VERSIONS RELATIVE ${VC_DIR} "${VC_DIR}/*") FILE(GLOB MSVC_TOOLCHAIN_VERSIONS RELATIVE ${VC_DIR} "${VC_DIR}/*")
IF(MSVC_TOOLCHAIN_VERSIONS) IF(MSVC_TOOLCHAIN_VERSIONS)
@ -60,9 +68,12 @@ ELSE()
IF(MSVC_TOOLCHAIN_VERSIONS) IF(MSVC_TOOLCHAIN_VERSIONS)
LIST(GET MSVC_TOOLCHAIN_VERSIONS 0 MSVC_TOOLCHAIN_VERSION) LIST(GET MSVC_TOOLCHAIN_VERSIONS 0 MSVC_TOOLCHAIN_VERSION)
ENDIF()
SET(VC_DIR "${VC_DIR}/${MSVC_TOOLCHAIN_VERSION}") ENDIF()
IF (MSVC_TOOLCHAIN_VERSION)
SET(VC_DIR "${VC_DIR}/${MSVC_TOOLCHAIN_VERSION}")
MESSAGE(STATUS "Found Visual C++ ${_NAME} (${_VERSION} with toolchain ${MSVC_TOOLCHAIN_VERSION}) in ${VC_DIR}") MESSAGE(STATUS "Found Visual C++ ${_NAME} (${_VERSION} with toolchain ${MSVC_TOOLCHAIN_VERSION}) in ${VC_DIR}")
ELSE() ELSE()
MESSAGE(FATAL_ERROR "Unable to find Visual C++ in ${VC_DIR}") MESSAGE(FATAL_ERROR "Unable to find Visual C++ in ${VC_DIR}")

Loading…
Cancel
Save