From 012cbc62444137c516c4e4cab7e17d21aef265f6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Dec 2019 08:43:14 +0300 Subject: more robust compiler identification --- common.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.cmake') diff --git a/common.cmake b/common.cmake index b1ea33e..610159e 100644 --- a/common.cmake +++ b/common.cmake @@ -23,9 +23,9 @@ cmake_policy(SET CMP0054 NEW) # Toolset identification: -if(CMAKE_C_COMPILER) +if(CMAKE_C_COMPILER_ID) set(toolset "${CMAKE_C_COMPILER_ID}") -elseif(CMAKE_CXX_COMPILER) +elseif(CMAKE_CXX_COMPILER_ID) set(toolset "${CMAKE_CXX_COMPILER_ID}") else() set(toolset "unknown") -- cgit v1.2.3