Skip to content
Snippets Groups Projects
0001-check-for-CATKIN_ENABLE_TESTING.patch 1.13 KiB
From be3ed623e765267ad3a64088295bdb63781c535b Mon Sep 17 00:00:00 2001
From: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Date: Sun, 13 Oct 2013 19:52:14 +0200
Subject: [PATCH] check for CATKIN_ENABLE_TESTING

---
 navfn/CMakeLists.txt | 4 +++-
 navfn/package.xml    | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/navfn/CMakeLists.txt b/navfn/CMakeLists.txt
index 005d7eb..2a29409 100644
--- a/navfn/CMakeLists.txt
+++ b/navfn/CMakeLists.txt
@@ -121,4 +121,6 @@ endif (NAVFN_HAVE_FLTK AND NAVFN_HAVE_NETPBM AND NOT APPLE)
 #   message (STATUS "pgm.h not found (optional)")
 # endif (NAVFN_HAVE_NETPBM)
 
-add_subdirectory(test)
+if(CATKIN_ENABLE_TESTING)
+  add_subdirectory(test)
+endif()
diff --git a/navfn/package.xml b/navfn/package.xml
index bf44445..99e6589 100644
--- a/navfn/package.xml
+++ b/navfn/package.xml
@@ -13,7 +13,7 @@
     <license>BSD</license>
     <url>http://wiki.ros.org/navfn</url>
 
-    <buildtool_depend>catkin</buildtool_depend>
+    <buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
 
     <build_depend>costmap_2d</build_depend>
     <build_depend>geometry_msgs</build_depend>
-- 
1.8.1.2