aboutsummaryrefslogtreecommitdiff
path: root/ports/fastrtps/namespace_tinyxml2.patch
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-05 11:46:32 -0800
committerGitHub <noreply@github.com>2018-12-05 11:46:32 -0800
commitb656594f3920be2fcc92629cdf084543b223bbfb (patch)
tree6c915ab9d5229ac8bee60532435a902b9aaee071 /ports/fastrtps/namespace_tinyxml2.patch
parent18ba27b4ca568f6296e4e9266635459af1776623 (diff)
parent3b25ec2d5c79b1597e37358ee74cc4f9facd0cb4 (diff)
downloadvcpkg-b656594f3920be2fcc92629cdf084543b223bbfb.tar.gz
vcpkg-b656594f3920be2fcc92629cdf084543b223bbfb.zip
Merge pull request #4759 from jasjuang/tinyxml2
[tinyxml2] update to 7.0.1
Diffstat (limited to 'ports/fastrtps/namespace_tinyxml2.patch')
-rw-r--r--ports/fastrtps/namespace_tinyxml2.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/fastrtps/namespace_tinyxml2.patch b/ports/fastrtps/namespace_tinyxml2.patch
new file mode 100644
index 000000000..3df65996f
--- /dev/null
+++ b/ports/fastrtps/namespace_tinyxml2.patch
@@ -0,0 +1,17 @@
+diff --git a/cmake/modules/FindTinyXML2.cmake b/cmake/modules/FindTinyXML2.cmake
+index 24aa98a..4e2188e 100644
+--- a/cmake/modules/FindTinyXML2.cmake
++++ b/cmake/modules/FindTinyXML2.cmake
+@@ -7,10 +7,10 @@ option(TINYXML2_FROM_SOURCE "Integrate TinyXML2 source code inside Fast RTPS" OF
+ find_package(TinyXML2 CONFIG QUIET)
+ if(TinyXML2_FOUND)
+ message(STATUS "Found TinyXML2: ${TinyXML2_DIR}")
+- if(NOT TINYXML2_LIBRARY AND TARGET tinyxml2)
++ if(NOT TINYXML2_LIBRARY AND TARGET tinyxml2::tinyxml2)
+ # in this case, we're probably using TinyXML2 version 5.0.0 or greater
+ # in which case tinyxml2 is an exported target and we should use that
+- set(TINYXML2_LIBRARY tinyxml2)
++ set(TINYXML2_LIBRARY tinyxml2::tinyxml2)
+ endif()
+ else()
+ if(THIRDPARTY)