Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2019-05-29 00:04:36 +0300
committergabime <gmelman1@gmail.com>2019-05-29 00:05:24 +0300
commit30bd80bd85df4e848ef4cbb701b631acf2c10e05 (patch)
tree809c02dc2e37c89ee1aba0d627bb21ade5eb0c14 /example
parent5709cb10d1691bf7779a6500a6930d335cbe4b0a (diff)
CMake improvements
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt10
1 files changed, 2 insertions, 8 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 2fbbf1d2..994051f9 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -2,15 +2,9 @@
# Distributed under the MIT License (http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 3.1)
-project(SpdlogExamples CXX)
+project(spdlog_examples CXX)
-if(TARGET spdlog)
- # If we're running this example as part of the primary spdlog applciation
- # then add an alias. This allows us to use the same "spdlog::spdlog"
- # below that a user would use (with the namespace)
- add_library(spdlog::spdlog ALIAS spdlog)
- add_library(spdlog::spdlog_header_only ALIAS spdlog_header_only)
-else()
+if(NOT TARGET spdlog)
# Stand-alone build
find_package(spdlog REQUIRED)
endif()