Merge pull request #2515 from puneetmatharu/v1.x

Export targets file to build directory at configure time
This commit is contained in:
Gabi Melman
2022-10-18 13:19:13 +03:00
committed by GitHub

View File

@@ -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)