This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Eigen, cmake and find_package()

Tags: None
(comma "," separated)
arennuit
Registered Member
Posts
28
Karma
0

Eigen, cmake and find_package()

Wed Jul 27, 2016 3:35 pm
Hi all,

I am using ubuntu 14.04 and have installed eigen using apt-get. Now I am compiling some special code which needs a specific version of eigen (i.e. not the one installed by apt-get). So I have setup a 2nd version of eigen in my dependencies folder.

Using cmake I set CMAKE_MODULE_PATH and use find_package() as described in viewtopic.php?f=74&t=94166. This method returns the right eigen path to me, which I really find magic as the path between my CMakeLists and my Dependencies/Eigen is complex:

DevRoot
+++ Dependencies
++++++ Eigen
+++++++++ v3.2.0
+++ src
++++++ catkin_ws
+++++++++ src
++++++++++++ packages
+++++++++++++++ sub-package1
++++++++++++++++++ CMakeLists.txt

Is it normal that find_package() finds my DevRoot/Dependencies/Eigen/v3.2.0 version? What are the rules which are used?

Thanks,

Antoine.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]