From f4bb38d119c231aac5c7296d9ea98849fcbbaff2 Mon Sep 17 00:00:00 2001 From: Mark Meredith Date: Tue, 5 Jan 2021 13:56:05 -0500 Subject: [PATCH] Workaround for AMD rocm compiler --- conan.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conan.cmake b/conan.cmake index 6425a9f..8b6c46b 100644 --- a/conan.cmake +++ b/conan.cmake @@ -155,6 +155,9 @@ function(conan_cmake_settings result) string(REPLACE "." ";" VERSION_LIST ${CMAKE_${LANGUAGE}_COMPILER_VERSION}) list(GET VERSION_LIST 0 MAJOR) list(GET VERSION_LIST 1 MINOR) + if(${MAJOR} STREQUAL "12") + set(MAJOR "11") + endif() set(_CONAN_SETTING_COMPILER clang) set(_CONAN_SETTING_COMPILER_VERSION ${MAJOR}.${MINOR}) if(APPLE) -- GitLab