Skip to content

Commit b888265

Browse files
authored
Add namespace for the exported targets (jbeder#1196)
This matches the name for the ALIAS targets, and fixes jbeder#1025.
1 parent 0e6e28d commit b888265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ if (YAML_CPP_INSTALL)
168168
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
169169
FILES_MATCHING PATTERN "*.h")
170170
install(EXPORT yaml-cpp-targets
171+
NAMESPACE yaml-cpp::
171172
DESTINATION "${CONFIG_EXPORT_DIR}")
172173
install(FILES
173174
"${PROJECT_BINARY_DIR}/yaml-cpp-config.cmake"

0 commit comments

Comments
 (0)