vcpkg/ports/sdformat13/cmake-config.patch
talregev d71315b15e
[sdformat13] new port (#31280)
* Add sdformat13 port

* sdformat13 fixes (#1)

* Fix cmake config export

* Cleanup

* Add usage

* Update versions

* Fix according comments review

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
2023-08-25 12:04:34 -07:00

24 lines
774 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3465a8f..2b57440 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -26,6 +26,7 @@ else()
target_link_libraries(using_parser_urdf INTERFACE
GzURDFDOM::GzURDFDOM)
endif()
+install(TARGETS using_parser_urdf EXPORT ${PROJECT_LIBRARY_TARGET_NAME} COMPONENT libraries)
if (BUILD_TESTING)
# Build this test file only if Gazebo Tools is installed.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,6 @@
if (NOT DEFINED USE_INTERNAL_URDF OR NOT USE_INTERNAL_URDF)
- gz_find_package(GzURDFDOM VERSION 1.0 QUIET)
+ gz_find_package(GzURDFDOM)
if (NOT GzURDFDOM_FOUND)
if (NOT DEFINED USE_INTERNAL_URDF)
# fallback to internal urdf
set(USE_INTERNAL_URDF ON)