Formatted cmake

This commit is contained in:
gabime
2020-05-02 11:42:08 +03:00
parent 4831ae17d9
commit 75c15e8028
6 changed files with 202 additions and 202 deletions

View File

@@ -4,8 +4,8 @@ cmake_minimum_required(VERSION 3.2)
project(spdlog_examples CXX)
if(NOT TARGET spdlog)
# Stand-alone build
find_package(spdlog REQUIRED)
# Stand-alone build
find_package(spdlog REQUIRED)
endif()
# ---------------------------------------------------------------------------------------
@@ -18,6 +18,6 @@ target_link_libraries(example PRIVATE spdlog::spdlog)
# Example of using header-only library
# ---------------------------------------------------------------------------------------
if(SPDLOG_BUILD_EXAMPLE_HO)
add_executable(example_header_only example.cpp)
target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only)
add_executable(example_header_only example.cpp)
target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only)
endif()