diff options
| author | Phil Christensen <philc@microsoft.com> | 2018-12-06 16:23:29 -0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2018-12-06 16:23:29 -0800 |
| commit | 86bb2c8d1614548c48a8dc274890e8751b7ef8a5 (patch) | |
| tree | dcf005b3e1622f4e22fbfadd40ba905f704256f7 /ports/fastrtps/namespace_tinyxml2.patch | |
| parent | 197fbf3b8b4bf10a53f44101648b6021d2f3cf14 (diff) | |
| parent | 63c1b2628e958f8e02356411f032941c0c2f3bbb (diff) | |
| download | vcpkg-86bb2c8d1614548c48a8dc274890e8751b7ef8a5.tar.gz vcpkg-86bb2c8d1614548c48a8dc274890e8751b7ef8a5.zip | |
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/4903
Diffstat (limited to 'ports/fastrtps/namespace_tinyxml2.patch')
| -rw-r--r-- | ports/fastrtps/namespace_tinyxml2.patch | 17 |
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)
|
