Skip to content

Commit

Permalink
fix(ci): added debug information about the compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmithcompsci committed Oct 29, 2024
1 parent b825c21 commit 9b51c91
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ project(
LANGUAGES CXX
)

# Output System Information
message(STATUS "CMake version: ${CMAKE_VERSION}")
message(STATUS "CMake system name: ${CMAKE_SYSTEM_NAME}")
message(STATUS "CMake system processor: ${CMAKE_SYSTEM_PROCESSOR}")

# Output Compiler Information for both C++ and C
message(STATUS "C++ Compiler: ${CMAKE_CXX_COMPILER}")
message(STATUS "C++ Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "C++ Compiler Version: ${CMAKE_CXX_COMPILER_VERSION}")

message(STATUS "C Compiler: ${CMAKE_C_COMPILER}")
message(STATUS "C Compiler ID: ${CMAKE_C_COMPILER_ID}")
message(STATUS "C Compiler Version: ${CMAKE_C_COMPILER_VERSION}")


option(BUILD_TESTS "Build the tests" ON)

# Set the C++ standard to C++17
Expand Down
5 changes: 5 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
:: Setup Clang
set CC=clang
set CXX=clang++

:: Run this script to build the project
cmake -B build -S . && cmake --build build

0 comments on commit 9b51c91

Please sign in to comment.