Skip to content

Commit

Permalink
build: add compiler identification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hedede committed Mar 9, 2024
1 parent 4a176ba commit 9880df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9880df4

Please sign in to comment.