summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2019-12-03 18:27:24 (GMT)
committerBrad King <brad.king@kitware.com>2019-12-05 16:48:48 (GMT)
commit3c125c6de028aeed39b9f9629618f7b9842eccd5 (patch)
treedc290cb3d76d2eba61dde76a3db9db673bf4da13 /Modules/CMakeDetermineCompilerId.cmake
parentc57bcf3b3025875dfbfd1d1f6eca1291abf4d2f7 (diff)
downloadCMake-3c125c6de028aeed39b9f9629618f7b9842eccd5.zip
CMake-3c125c6de028aeed39b9f9629618f7b9842eccd5.tar.gz
CMake-3c125c6de028aeed39b9f9629618f7b9842eccd5.tar.bz2
VS: Support Visual Studio Clang Toolkit identification
Teach CMake that the `ClangCl` toolset uses the `ClangClExecutable` value as the path to the compiler executable.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 0b3664c..002fe21 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -246,7 +246,7 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
set(id_platform ${CMAKE_VS_PLATFORM_NAME})
set(id_lang "${lang}")
set(id_PostBuildEvent_Command "")
- if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "^[Ll][Ll][Vv][Mm](_v[0-9]+(_xp)?)?$")
+ if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "^([Ll][Ll][Vv][Mm](_v[0-9]+(_xp)?)?|[Cc][Ll][Aa][Nn][Gg][Cc][Ll])$")
set(id_cl_var "ClangClExecutable")
elseif(CMAKE_VS_PLATFORM_TOOLSET MATCHES "v[0-9]+_clang_.*")
set(id_cl clang.exe)