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,24 +45,35 @@ 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})
FILE(GLOB MSVC_TOOLCHAIN_VERSIONS RELATIVE ${VC_DIR} "${VC_DIR}/*") IF(DEFINED ENV{VCToolsVersion})
IF(MSVC_TOOLCHAIN_VERSIONS) SET(MSVC_TOOLCHAIN_VERSION $ENV{VCToolsVersion})
LIST(SORT MSVC_TOOLCHAIN_VERSIONS)
LIST(REVERSE MSVC_TOOLCHAIN_VERSIONS)
ENDIF()
IF(MSVC_TOOLCHAIN_VERSIONS) ELSE()
LIST(GET MSVC_TOOLCHAIN_VERSIONS 0 MSVC_TOOLCHAIN_VERSION)
SET(VC_DIR "${VC_DIR}/${MSVC_TOOLCHAIN_VERSION}") FILE(GLOB MSVC_TOOLCHAIN_VERSIONS RELATIVE ${VC_DIR} "${VC_DIR}/*")
IF(MSVC_TOOLCHAIN_VERSIONS)
LIST(SORT MSVC_TOOLCHAIN_VERSIONS)
LIST(REVERSE MSVC_TOOLCHAIN_VERSIONS)
ENDIF()
IF(MSVC_TOOLCHAIN_VERSIONS)
LIST(GET MSVC_TOOLCHAIN_VERSIONS 0 MSVC_TOOLCHAIN_VERSION)
ENDIF()
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