mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
CMakeDetermineCompilerId: Add detection of clang.exe bundled with VS
When using a clang toolset we need to find `clang.exe` instead of `cl.exe`.
This commit is contained in:
committed by
Brad King
parent
b19bc31277
commit
37afe00faa
@@ -157,7 +157,11 @@ Id flags: ${testflags}
|
||||
set(vs_version ${CMAKE_MATCH_1})
|
||||
set(id_platform ${CMAKE_VS_PLATFORM_NAME})
|
||||
set(id_lang "${lang}")
|
||||
set(id_cl cl.exe)
|
||||
if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "v[0-9]+_clang_.*")
|
||||
set(id_cl clang.exe)
|
||||
else()
|
||||
set(id_cl cl.exe)
|
||||
endif()
|
||||
if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")
|
||||
set(v NsightTegra)
|
||||
set(ext vcxproj)
|
||||
|
||||
Reference in New Issue
Block a user