[Bug 1012] New: CMake issues with newer Xenomai custom installs.

http://bugs.orocos.org/show_bug.cgi?id=1012

Summary: CMake issues with newer Xenomai custom installs.
Product: Toolchain
Version: master
Platform: i386 Compatible
OS/Version: Xenomai 2.x
Status: NEW
Severity: normal
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

I'm building Orocos RTT (from git) with Xenomai under ubuntu. I have
experienced some troubles:
1. After running ccmake, pressing c, changing OROCOS_TARGET to xenomai,
configure again, I'm getting following error:
No OROCOS_TARGET environment variable detected. Using: xenomai
[...]
CMake Error at config/check_depend.cmake:264 (message):
No suitable OROCOS_TARGET selected. Use one of
'lxrt,xenomai,gnulinux,macosx,win32'
Call Stack (most recent call first):
CMakeLists.txt:146 (INCLUDE)

OROCOS_TARGET=xenomai ccmake .. is producing the same error, but after
setting XENOMAI_ROOT_DIR environment variable, everything is almost fine.

2. Almost, becouse ccmake finds xenomai_posix_include_dir in /usr/include
instead of /usr/xenomai/include, and the xenomai_posix_library is not found.

3. Why searching for paths in FindXenomai.cmake using find_path or
find_library instead of using xeno-config like it is done in
FindXenomaiPosix.cmake?

4. Fix for deprecated function (I suppose it is not changed due older xenomai
versions compatibility, but I think it is good time, to change it now):
diff --git a/config/FindXenomaiPosix.cmake b/config/FindXenomaiPosix.cmake
index 1b6e49b..edb7256 100644

[Bug 1012] CMake issues with newer Xenomai custom installs.

http://bugs.orocos.org/show_bug.cgi?id=1012

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED