From c2bdad5f016b7e1c1cb01b1f915db1682ea92b40 Mon Sep 17 00:00:00 2001 From: Michel Hidalgo Date: Mon, 27 Jan 2020 15:52:30 -0300 Subject: [PATCH] Drop CMake extras redundant with eigen3_cmake_module. (#50) Signed-off-by: Michel Hidalgo --- CMakeLists.txt | 2 +- laser_geometry-extras.cmake | 31 ------------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 laser_geometry-extras.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 82b5862..46cc361 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,4 +79,4 @@ if(BUILD_TESTING) endif() endif() -ament_package(CONFIG_EXTRAS laser_geometry-extras.cmake) +ament_package() diff --git a/laser_geometry-extras.cmake b/laser_geometry-extras.cmake deleted file mode 100644 index 0790820..0000000 --- a/laser_geometry-extras.cmake +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# copied from rclcpp/rclcpp-extras.cmake - -# register ament_package() hook for node plugins once - -find_package(Eigen3 REQUIRED) - -# Eigen3 uses non-standard variable for -# include dirs (case and name): EIGEN3_INCLUDE_DIR. -if(NOT Eigen3_INCLUDE_DIRS) - if(EIGEN3_INCLUDE_DIR) - message(STATUS "append ${EIGEN3_INCLUDE_DIR} to (${laser_geometry_INCLUDE_DIRS})") - list(APPEND laser_geometry_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR}) - message(STATUS "laser_geometry_INCLUDE_DIRS=${laser_geometry_INCLUDE_DIRS}") - else() - message(FATAL_ERROR "Eigen3_INCLUDE_DIRS not found") - endif() -endif()