From 76fc166e115a053cfb95b0378e8c7fdff6656ddf Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 29 May 2019 01:41:48 +0300 Subject: [PATCH] CMakeLists.txt minor improvments --- CMakeLists.txt | 4 ++++ bench/CMakeLists.txt | 2 -- example/CMakeLists.txt | 2 -- tests/CMakeLists.txt | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d206af37..0ad1b307 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,15 +101,18 @@ endif() # build binries #--------------------------------------------------------------------------------------- if(SPDLOG_BUILD_EXAMPLES) + message(STATUS "Generating examples") add_subdirectory(example) endif() if(SPDLOG_BUILD_TESTS) + message(STATUS "Generating tests") include(CTest) add_subdirectory(tests) endif() if(SPDLOG_BUILD_BENCH) + message(STATUS "Generating benchmarks") add_subdirectory(bench) endif() @@ -117,6 +120,7 @@ endif() # install #--------------------------------------------------------------------------------------- if (SPDLOG_INSTALL) + message(STATUS "Generating install") set(project_config_in "${CMAKE_CURRENT_LIST_DIR}/cmake/spdlogConfig.cmake.in") set(project_config_out "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfig.cmake") set(config_targets_file "spdlogConfigTargets.cmake") diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index 1920fe8b..6457a89d 100644 --- a/bench/CMakeLists.txt +++ b/bench/CMakeLists.txt @@ -4,8 +4,6 @@ cmake_minimum_required(VERSION 3.1) project(spdlog_bench CXX) -message(STATUS "Generating benchmarks..") - if(NOT TARGET spdlog) # Stand-alone build find_package(spdlog CONFIG REQUIRED) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index f7ead24a..994051f9 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -4,8 +4,6 @@ cmake_minimum_required(VERSION 3.1) project(spdlog_examples CXX) -message(STATUS "Generating examples..") - if(NOT TARGET spdlog) # Stand-alone build find_package(spdlog REQUIRED) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index dad8c424..a59cf07b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,3 @@ -message(STATUS "Generating tests..") - set(SPDLOG_UTESTS_SOURCES test_errors.cpp test_file_helper.cpp