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:
authorGabi Melman <gmelman1@gmail.com>2022-10-18 13:19:13 +0300
committerGitHub <noreply@github.com>2022-10-18 13:19:13 +0300
commit77429b2e2e70feb5d2619374f2bc99326f6570dd (patch)
tree1e65bfd06f1db2479458c60dd0a6d62da8225575
parentd011332616464bd0c84817d6255bf5910b7803e9 (diff)
parent7768c6271c4bf8860eaa9363f122d90762d014fc (diff)
Merge pull request #2515 from puneetmatharu/v1.x
Export targets file to build directory at configure time
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 975a0f6a..36e21745 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -329,6 +329,10 @@ if(SPDLOG_INSTALL)
# ---------------------------------------------------------------------------------------
# Install CMake config files
# ---------------------------------------------------------------------------------------
+ export(
+ TARGETS spdlog
+ NAMESPACE spdlog::
+ FILE "${CMAKE_CURRENT_BINARY_DIR}/${config_targets_file}")
install(EXPORT spdlog DESTINATION ${export_dest_dir} NAMESPACE spdlog:: FILE ${config_targets_file})
include(CMakePackageConfigHelpers)