From 9880df423d8ed36c3ca9fffa6ba404cba73b5c75 Mon Sep 17 00:00:00 2001 From: Hudd Date: Sat, 9 Mar 2024 20:09:01 +0400 Subject: [PATCH] build: add compiler identification While CMake does show the compiler identification when you first run it, displaying these variables still simplifies the debugging as it shows their exact value. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f86b32f..a9eb855b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,9 @@ set(AW_CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/awlib/cmake") list(APPEND CMAKE_MODULE_PATH ${AW_CMAKE_MODULE_PATH}) +message(STATUS "Compiler: ${CMAKE_CXX_COMPILER_ID}") +message(STATUS "Compiler variant: ${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}") + if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") add_compile_options( # multicore build by default