From b8882652fcbeba4c00dec019a39da91e702e474e Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 28 Jun 2023 10:37:09 -0600 Subject: [PATCH] Add namespace for the exported targets (#1196) This matches the name for the ALIAS targets, and fixes #1025. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ef6e8a..0c53758 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,6 +168,7 @@ if (YAML_CPP_INSTALL) DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} FILES_MATCHING PATTERN "*.h") install(EXPORT yaml-cpp-targets + NAMESPACE yaml-cpp:: DESTINATION "${CONFIG_EXPORT_DIR}") install(FILES "${PROJECT_BINARY_DIR}/yaml-cpp-config.cmake"