OCL CMAKE_PREFIX_PATH behaviour

Hey,

trying to build OCL on an older ubuntu (jaunty) system, I discovered
the CMAKE_PREFIX_PATH variable needs to be set differently in order to
find RTT.
cmake 2.8.0 is satisfied with
-DCMAKE_PREFIX_PATH = `rospack find rtt`/install

while cmake 2.6.2 requires
-DCMAKE_PREFIX_PATH = `rospack find rtt`/install/lib/cmake/orocos-rtt

regards,

Steven

OCL CMAKE_PREFIX_PATH behaviour

On Wed, Sep 29, 2010 at 8:52 AM, Steven Bellens <
steven [dot] bellens [..] ...> wrote:

> Hey,
>
> trying to build OCL on an older ubuntu (jaunty) system, I discovered
> the CMAKE_PREFIX_PATH variable needs to be set differently in order to
> find RTT.
> cmake 2.8.0 is satisfied with
> -DCMAKE_PREFIX_PATH = `rospack find rtt`/install
>
> while cmake 2.6.2 requires
> -DCMAKE_PREFIX_PATH = `rospack find rtt`/install/lib/cmake/orocos-rtt
>
>
Correct, this is expected behavior. The details can be found here:

http://www.vtk.org/Wiki/CMake_2.6_Notes#Package_Configuration_Files

Towards the end of the section it is stated that the
/install/lib/cmake/orocos-rtt folder is searched by default only on cmake >=
2.6.3. This is, however, the suggested practice, and on the case of rtt, it
nicely separates the coexisting pkgconfig and cmake package configuration
files in appropriately named folders.

Having said that, it looks like this issue should be documented in the
"getting started" parts of the documentation to prevent similar future
confusions.

Cheers,

Adolfo

> regards,
>
> Steven
> --
> Orocos-Dev mailing list
> Orocos-Dev [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
>