mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 11:02:03 +08:00
cdf9d9b5d5
* [sdformat13] Fix find dependency urdfdom * version * fix usage * version * Update ports/sdformat13/portfile.cmake * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
25 lines
941 B
Diff
25 lines
941 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e797e8a..0f652d7 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -56,7 +56,18 @@ if (BUILD_SDF)
|
|
# 2. if USE_INTERNAL_URDF is set to True, use the internal copy
|
|
# 3. if USE_INTERNAL_URDF is set to False, force to search system installation, fail on error
|
|
if (NOT DEFINED USE_INTERNAL_URDF OR NOT USE_INTERNAL_URDF)
|
|
- gz_find_package(GzURDFDOM)
|
|
+ find_package(urdfdom CONFIG REQUIRED)
|
|
+ add_library(GzURDFDOM::GzURDFDOM INTERFACE IMPORTED)
|
|
+ target_link_libraries(GzURDFDOM::GzURDFDOM
|
|
+ INTERFACE
|
|
+ urdfdom::urdfdom_model
|
|
+ urdfdom::urdfdom_world
|
|
+ urdfdom::urdfdom_sensor
|
|
+ urdfdom::urdfdom_model_state
|
|
+ )
|
|
+ include(FindPackageHandleStandardArgs)
|
|
+ find_package_handle_standard_args(GzURDFDOM DEFAULT_MSG)
|
|
+
|
|
if (NOT GzURDFDOM_FOUND)
|
|
if (NOT DEFINED USE_INTERNAL_URDF)
|
|
# fallback to internal urdf
|