KDL patch for Eigen >= 3.2.0

S Roderick <[email protected]> Wed, 02 Apr 2014 09:57:45 -0400
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <[email protected]>
Eigen >= 3.2.0 adds a warning about use of soon-to-be deprecated Eigen2 features. This silences that warning.

Tested on OS X 10.8.
S

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
0001-cmake-Silence-Eigen-3.2.0-warnings-about-deprecated-.patch (application/octet-stream, 841 B)
From 5f40000082c551a26b2ea13444f8278275110ed1 Mon Sep 17 00:00:00 2001
From: Stephen Roderick <[email protected]>
Date: Wed, 2 Apr 2014 09:53:53 -0400
Subject: [PATCH] cmake: Silence Eigen >= 3.2.0 warnings about deprecated
 Eigen2

---
 orocos_kdl/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/orocos_kdl/CMakeLists.txt b/orocos_kdl/CMakeLists.txt
index b984605..2497590 100644
--- a/orocos_kdl/CMakeLists.txt
+++ b/orocos_kdl/CMakeLists.txt
@@ -48,6 +48,8 @@ if(NOT Eigen_FOUND)
   set(Eigen_INCLUDE_DIR ${EIGEN3_INCLUDE_DIR})
 endif()
 include_directories(${Eigen_INCLUDE_DIR})
+# keep Eigen >= 3.2.0 quiet about Eigen2 deprecated features
+ADD_DEFINITIONS(-DEIGEN_NO_EIGEN2_DEPRECATED_WARNING)
 SET(KDL_CFLAGS "${KDL_CFLAGS} -I${Eigen_INCLUDE_DIR}")
 
 # Check the platform STL containers capabilities
-- 
1.8.2.3