Updated CMake options and defaults

This commit is contained in:
gabime
2019-07-01 02:06:09 +03:00
parent f09334dc6f
commit bb0f3839c1
3 changed files with 25 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
project(spdlog_utests CXX)
find_package(PkgConfig)
if(PkgConfig_FOUND)
pkg_check_modules(systemd libsystemd)
@@ -45,7 +47,7 @@ if(SPDLOG_BUILD_TESTS)
endif()
# The header-only library version tests
if(SPDLOG_BUILD_HO_TESTS)
if(SPDLOG_BUILD_TESTS_HO)
add_executable(spdlog-utests-ho ${SPDLOG_UTESTS_SOURCES})
spdlog_enable_warnings(spdlog-utests-ho)
target_link_libraries(spdlog-utests-ho PRIVATE spdlog::spdlog_header_only)