diff options
Diffstat (limited to '')
-rw-r--r-- | common.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
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") |