From ecc8e6e06c36c3674cd9851987499cbbaa31747c Mon Sep 17 00:00:00 2001 From: Johannes Mey <johannes.mey@tu-dresden.de> Date: Tue, 12 Jan 2021 18:47:06 +0100 Subject: [PATCH] use correct import of SDF library --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2336e95..38cbe56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,8 @@ find_package(catkin REQUIRED COMPONENTS ## System dependencies are found with CMake's conventions # find_package(Boost REQUIRED COMPONENTS system) -find_package(SDFormat) +message("ERROR" "${CMAKE_MODULE_PATH}") +find_package(sdformat9 CONFIG REQUIRED) # this is the last resort if the package cannot be found otherwise #find_package(PkgConfig REQUIRED) @@ -105,6 +106,11 @@ find_package(SDFormat) ## LIBRARIES: libraries you create in this project that dependent projects also need ## CATKIN_DEPENDS: catkin_packages dependent projects also need ## DEPENDS: system dependencies of this project that dependent projects also need +get_cmake_property(_variableNames VARIABLES) +list (SORT _variableNames) +foreach (_variableName ${_variableNames}) + message(STATUS "${_variableName}=${${_variableName}}") +endforeach() catkin_package( INCLUDE_DIRS include LIBRARIES gazebo_zone_utility @@ -120,8 +126,7 @@ catkin_package( ## Your package locations should be listed before other locations include_directories( include - /usr/include/sdformat-9.2 - /usr/include/ignition/math6 + ${SDFormat_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ) -- GitLab