Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Thomason <leethomason@gmail.com>2020-12-30 21:25:16 +0300
committerGitHub <noreply@github.com>2020-12-30 21:25:16 +0300
commit4ec7320e570fc704513dcc29cb770c881f20a5c8 (patch)
tree257ac35574a7a1dd8dc8d6b596cab5ee0a4da1cb
parentee6684483cff87431587843d0b7efe30c3116f32 (diff)
parent4001a468b75d9008c564ecead63c24bfe9e4b266 (diff)
Merge pull request #790 from offlinemark/mark/cmake-namespace
cmake: Use a namespace for the tinyxml2 target in local export
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d43809..3c13dbe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,7 +76,8 @@ endif()
# Export cmake script that can be used by downstream project
# via `include()`
export(TARGETS tinyxml2
- FILE ${CMAKE_BINARY_DIR}/${TARGETS_EXPORT_NAME}.cmake)
+ NAMESPACE tinyxml2::
+ FILE ${CMAKE_BINARY_DIR}/${TARGETS_EXPORT_NAME}.cmake)
install(TARGETS tinyxml2
EXPORT ${TARGETS_EXPORT_NAME}