From b9b5f41e04dc535d52da767ce3cb3b00d4fffe21 Mon Sep 17 00:00:00 2001 From: Bjoern Thiel Date: Fri, 19 May 2017 09:52:27 +0200 Subject: [PATCH] CMake imported targets should be namespaced --- fmt/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fmt/CMakeLists.txt b/fmt/CMakeLists.txt index 29e881b3..2b50e1db 100644 --- a/fmt/CMakeLists.txt +++ b/fmt/CMakeLists.txt @@ -84,7 +84,8 @@ if (FMT_INSTALL) install( FILES ${project_config} ${version_config} DESTINATION ${FMT_CMAKE_DIR}) - install(EXPORT ${targets_export_name} DESTINATION ${FMT_CMAKE_DIR}) + install(EXPORT ${targets_export_name} DESTINATION ${FMT_CMAKE_DIR} + NAMESPACE Fmt::) # Install the library and headers. install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name}