Skip to content

Commit

Permalink
CMakeList: print which compiler is used
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Aug 5, 2024
1 parent 7cd6bfa commit 46e564d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ else()
message(FATAL_ERROR "Unsupported GZ_VERSION: $ENV{GZ_VERSION}")
endif()

if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
MESSAGE("Using Clang")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
MESSAGE("Using GNU GCC")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
MESSAGE("Using Intel Compiler")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
MESSAGE("Using MSVC")
endif()

# --------------------------------------------------------------------------- #
find_package(RapidJSON REQUIRED)
find_package(OpenCV REQUIRED)
Expand Down

0 comments on commit 46e564d

Please sign in to comment.