From 962c44b494a6bf5572187ec33282943459292886 Mon Sep 17 00:00:00 2001 From: sotten <44020272+sotten@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:54:59 +0100 Subject: [PATCH] add the TIClang compiler, which is supported as of cmake 3.29.0. --- conan_provider.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conan_provider.cmake b/conan_provider.cmake index c21ab38a..3be14432 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -149,7 +149,7 @@ function(detect_lib_cxx LIB_CXX) set(${LIB_CXX} "libstdc++${_CONAN_GNU_LIBSTDCXX_SUFFIX}" PARENT_SCOPE) elseif(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") set(${LIB_CXX} "libc++" PARENT_SCOPE) - elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_SYSTEM_NAME MATCHES "Windows") + elseif((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "TIClang") AND NOT CMAKE_SYSTEM_NAME MATCHES "Windows") # Check for libc++ detect_libcxx() if(_CONAN_IS_LIBCXX) @@ -239,6 +239,10 @@ function(detect_compiler COMPILER COMPILER_VERSION COMPILER_RUNTIME COMPILER_RUN set(_COMPILER "clang") string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION}) list(GET VERSION_LIST 0 _COMPILER_VERSION) + elseif(_COMPILER MATCHES TIClang) + set(_COMPILER "ticlang") + string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION}) + list(GET VERSION_LIST 0 _COMPILER_VERSION) elseif(_COMPILER MATCHES GNU) set(_COMPILER "gcc") string(REPLACE "." ";" VERSION_LIST ${CMAKE_CXX_COMPILER_VERSION})