Merge pull request #790 from offlinemark/mark/cmake-namespace
cmake: Use a namespace for the tinyxml2 target in local export
This commit is contained in:
@@ -76,7 +76,8 @@ endif()
|
|||||||
# Export cmake script that can be used by downstream project
|
# Export cmake script that can be used by downstream project
|
||||||
# via `include()`
|
# via `include()`
|
||||||
export(TARGETS tinyxml2
|
export(TARGETS tinyxml2
|
||||||
FILE ${CMAKE_BINARY_DIR}/${TARGETS_EXPORT_NAME}.cmake)
|
NAMESPACE tinyxml2::
|
||||||
|
FILE ${CMAKE_BINARY_DIR}/${TARGETS_EXPORT_NAME}.cmake)
|
||||||
|
|
||||||
install(TARGETS tinyxml2
|
install(TARGETS tinyxml2
|
||||||
EXPORT ${TARGETS_EXPORT_NAME}
|
EXPORT ${TARGETS_EXPORT_NAME}
|
||||||
|
|||||||
Reference in New Issue
Block a user