diff options
author | Brad King <brad.king@kitware.com> | 2020-03-27 11:44:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-27 11:45:15 (GMT) |
commit | 112cb248aee27e7e33a5b3527e2de94a6ab95e48 (patch) | |
tree | cf91b7ecb6a079b48c3643756589a71866d236ff | |
parent | 9a585fc038aae22b3afa5d9e9051fe768cce9ec6 (diff) | |
parent | f3d7a1501003ab9582b94639b06d19feed107f2f (diff) | |
download | CMake-112cb248aee27e7e33a5b3527e2de94a6ab95e48.zip CMake-112cb248aee27e7e33a5b3527e2de94a6ab95e48.tar.gz CMake-112cb248aee27e7e33a5b3527e2de94a6ab95e48.tar.bz2 |
Merge topic 'vs-clangcl'
f3d7a15010 VS: Fix ClangCL toolset compiler path detection
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4523
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 6cdea31..9ebaa6c 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -246,8 +246,10 @@ 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)?)?|[Cc][Ll][Aa][Nn][Gg][Cc][Ll])$") + if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "^[Ll][Ll][Vv][Mm](_v[0-9]+(_xp)?)?$") set(id_cl_var "ClangClExecutable") + elseif(CMAKE_VS_PLATFORM_TOOLSET MATCHES "^[Cc][Ll][Aa][Nn][Gg][Cc][Ll]$") + set(id_cl "$(CLToolExe)") elseif(CMAKE_VS_PLATFORM_TOOLSET MATCHES "v[0-9]+_clang_.*") set(id_cl clang.exe) else() |