From 250aa2bbe3062c8b835ed590e4470d6efcce5410 Mon Sep 17 00:00:00 2001 From: Stanislav Angelovic Date: Tue, 21 Jul 2020 12:12:14 +0200 Subject: [PATCH] Add additional messages to CMake build for optional parts --- CMakeLists.txt | 3 +++ cmake/LibsystemdExternalProject.cmake | 2 ++ tests/CMakeLists.txt | 2 ++ 3 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2500b49..ac06dc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,6 +141,7 @@ install(TARGETS ${EXPORT_SET} option(BUILD_TESTS "Build and install tests (default OFF)" OFF) if(BUILD_TESTS) + message(STATUS "Building with tests") enable_testing() add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/tests") endif() @@ -152,6 +153,7 @@ endif() option(BUILD_CODE_GEN "Build and install interface stub code generator (default OFF)" OFF) if(BUILD_CODE_GEN) + message(STATUS "Building with code generator tool") add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/tools") endif() @@ -162,6 +164,7 @@ endif() option(BUILD_DOC "Build documentation for sdbus-c++" ON) if(BUILD_DOC) + message(STATUS "Building with documentation") option(BUILD_DOXYGEN_DOC "Build doxygen documentation for sdbus-c++ API" OFF) add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/docs") install(FILES README README.md NEWS COPYING ChangeLog AUTHORS DESTINATION ${CMAKE_INSTALL_DOCDIR}) diff --git a/cmake/LibsystemdExternalProject.cmake b/cmake/LibsystemdExternalProject.cmake index 80d62f1..90b2987 100644 --- a/cmake/LibsystemdExternalProject.cmake +++ b/cmake/LibsystemdExternalProject.cmake @@ -30,6 +30,8 @@ if(LIBSYSTEMD_VERSION GREATER "240") set(BUILD_VERSION_H ${NINJA} -C version.h) endif() +message(STATUS "Building with embedded libsystemd v${LIBSYSTEMD_VERSION}") + include(ExternalProject) ExternalProject_Add(LibsystemdBuildProject PREFIX libsystemd-v${LIBSYSTEMD_VERSION} diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3d3431f..97f7c1a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -102,6 +102,7 @@ if(ENABLE_PERF_TESTS OR ENABLE_STRESS_TESTS) find_package(Threads REQUIRED) if(ENABLE_PERF_TESTS) + message(STATUS "Building with performance tests") add_executable(sdbus-c++-perf-tests-client ${STRESSTESTS_CLIENT_SRCS}) target_link_libraries(sdbus-c++-perf-tests-client sdbus-c++ Threads::Threads) add_executable(sdbus-c++-perf-tests-server ${STRESSTESTS_SERVER_SRCS}) @@ -109,6 +110,7 @@ if(ENABLE_PERF_TESTS OR ENABLE_STRESS_TESTS) endif() if(ENABLE_STRESS_TESTS) + message(STATUS "Building with stress tests") add_executable(sdbus-c++-stress-tests ${STRESSTESTS_SRCS}) target_link_libraries(sdbus-c++-stress-tests sdbus-c++ Threads::Threads) endif()