diff options
author | Lee Thomason <leethomason@gmail.com> | 2020-12-30 21:25:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 21:25:16 +0300 |
commit | 4ec7320e570fc704513dcc29cb770c881f20a5c8 (patch) | |
tree | 257ac35574a7a1dd8dc8d6b596cab5ee0a4da1cb | |
parent | ee6684483cff87431587843d0b7efe30c3116f32 (diff) | |
parent | 4001a468b75d9008c564ecead63c24bfe9e4b266 (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.txt | 3 |
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}
|