diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2019-12-03 18:27:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-12-05 16:48:48 (GMT) |
commit | 3c125c6de028aeed39b9f9629618f7b9842eccd5 (patch) | |
tree | dc290cb3d76d2eba61dde76a3db9db673bf4da13 /Modules/CMakeDetermineCompilerId.cmake | |
parent | c57bcf3b3025875dfbfd1d1f6eca1291abf4d2f7 (diff) | |
download | CMake-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.cmake | 2 |
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) |