From a8d6e60ec68ca7609706e076102aca758be05280 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 7 Feb 2020 15:39:26 +0100 Subject: [PATCH 1/2] Enable running the tests against an installed copy of spdlog --- tests/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 904b4561..ce22954f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,12 @@ +cmake_minimum_required(VERSION 3.2) + project(spdlog_utests CXX) +if(NOT TARGET spdlog) + # Stand-alone build + find_package(spdlog REQUIRED) +endif() + include(../cmake/utils.cmake) find_package(PkgConfig) From 8d06df97757bb865d184546c9f993a4e53d9f523 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 7 Feb 2020 16:09:16 +0100 Subject: [PATCH 2/2] Enable building & running the example against an installed copy of spdlog --- example/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 458ca952..a2330174 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -4,6 +4,8 @@ cmake_minimum_required(VERSION 3.1) project(spdlog_examples CXX) +include(../cmake/utils.cmake) + if(NOT TARGET spdlog) # Stand-alone build find_package(spdlog REQUIRED)