MantisBT - CMake
View Issue Details
0013530CMakeCMakepublic2012-09-12 08:222012-09-12 13:59
prevot 
 
normalfeaturealways
closedfixed 
Linux
CMake 2.8.9 
 
0013530: FindBullet.cmake should be able to check installs in /usr/local
When installing bullet (with make install) it goes in /usr/local/include/bullet and /usr/local/lib. We should be able to use find_package(Bullet) with BOOST_ROOT=/usr/local.
To do this you need to add ${BULLET_ROOT}/include/bullet when looking for includes (after line 55 fore example)
--- /usr/share/cmake-2.8/Modules/FindBullet.cmake 2012-09-12 12:36:35.716125456 +0200
+++ FinBullet.cmake 2012-09-12 14:07:03.544471313 +0200
@@ -53,6 +53,7 @@
   HINTS
     ${BULLET_ROOT}/include
     ${BULLET_ROOT}/src
+ ${BULLET_ROOT}/include/bullet
   PATH_SUFFIXES bullet
 )
No tags attached.
Issue History
2012-09-12 08:22prevotNew Issue
2012-09-12 10:00Rolf Eike BeerNote Added: 0031005
2012-09-12 12:16prevotNote Added: 0031016
2012-09-12 13:59Rolf Eike BeerStatusnew => closed
2012-09-12 13:59Rolf Eike BeerResolutionopen => fixed

Notes
(0031005)
Rolf Eike Beer   
2012-09-12 10:00   
You meant BULLET_ROOT, not BOOST_ROOT, didn't you?

And the PATH_SUFFIXES bullet below should do exactly what you want, i.e. it will check both ${BULLET_ROOT}/include and ${BULLET_ROOT}/include/bullet.

Have you tested this and it did not work?
(0031016)
prevot   
2012-09-12 12:16   
woops number 1: yes I meant BULLET_ROOT
woops number 2: the problem occured on my coworker's machine (cmake 2.8 with bullet in /usr/local), but I made the patch on my machine (cmake 2.9 with bullet in /usr)... indeed the PATH_SUFFIXES that was added in 2.9 does the trick

Sorry fore the spam then, and this bug can be closed as invalid.