Skip to content

Commit

Permalink
Use CMake's STATUS for status messages
Browse files Browse the repository at this point in the history
Instead of replicating CMake's "-- " prefixes ourselves.
  • Loading branch information
pcolby committed Sep 4, 2022
1 parent 9e4de98 commit ded351f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)
message("-- CMake version is ${CMAKE_VERSION}")
message(STATUS "CMake version is ${CMAKE_VERSION}")
if (DEFINED CMAKE_BUILD_TYPE)
message("-- CMake build type is ${CMAKE_BUILD_TYPE}")
message(STATUS "CMake build type is ${CMAKE_BUILD_TYPE}")
endif()

set(CMAKE_CXX_EXTENSIONS OFF)
Expand All @@ -28,7 +28,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(QT REQUIRED COMPONENTS Core Network NAMES Qt6 Qt5)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network)
message("-- Found Qt ${Qt${QT_VERSION_MAJOR}_VERSION}")
message(STATUS "Found Qt ${Qt${QT_VERSION_MAJOR}_VERSION}")

# Include the codegen sub-project if Grantlee is found.
# If BUILD_CODEGEN is "AUTO" we'll only look for Grantlee with Qt5, since Grantlee is
Expand All @@ -41,7 +41,7 @@ if (BUILD_CODEGEN AND ((NOT BUILD_CODEGEN STREQUAL AUTO) OR (QT_VERSION_MAJOR EQ
find_package(Grantlee5 QUIET)
endif()
if (Grantlee5_FOUND)
message("-- Found Grantlee ${Grantlee5_VERSION}")
message(STATUS "Found Grantlee ${Grantlee5_VERSION}")
add_subdirectory(codegen)
else()
message("Grantlee not found; codegen sub-project skipped")
Expand Down

0 comments on commit ded351f

Please sign in to comment.