summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorAlexander Boczar <alexboc@microsoft.com>2019-09-16 21:14:20 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-15 17:28:45 (GMT)
commit548e9051a4f20657d04341107924171ea9d1bcb5 (patch)
tree4b7aba7800a6a193396aabf4ab4259029db9ec35 /Modules/CMakeDetermineCompilerId.cmake
parent99e83d423500e11a8e85c2032e8c536bce175ed1 (diff)
downloadCMake-548e9051a4f20657d04341107924171ea9d1bcb5.zip
CMake-548e9051a4f20657d04341107924171ea9d1bcb5.tar.gz
CMake-548e9051a4f20657d04341107924171ea9d1bcb5.tar.bz2
VS: Add support to override VCTargetsPath through toolset
Fixes: #19708
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 908e530..976b291 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -317,6 +317,9 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
if(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION)
set(id_WindowsTargetPlatformVersion "<WindowsTargetPlatformVersion>${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}</WindowsTargetPlatformVersion>")
endif()
+ if(CMAKE_VS_PLATFORM_TOOLSET_VCTARGETS_CUSTOM_DIR)
+ set(id_ToolsetVCTargetsDir "<VCTargetsPath>${CMAKE_VS_PLATFORM_TOOLSET_VCTARGETS_CUSTOM_DIR}</VCTargetsPath>")
+ endif()
if(id_platform STREQUAL ARM64)
set(id_WindowsSDKDesktopARMSupport "<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>")
elseif(id_platform STREQUAL ARM)