From eef14f7cab95f3fb0ff57d8709c1415500f193bc Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Fri, 22 Apr 2011 15:16:43 +0200 Subject: [PATCH 2/2] mqueue: fix using the find_package(Orocos-RTT) macro A hint must be set in order not to run into a warning/error if the CMAKE_PREFIX_PATH has not been set, but the PKG_CONFIG_PATH has. Signed-off-by: Peter Soetens --- lib/orogen/templates/typekit/mqueue/CMakeLists.txt | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/orogen/templates/typekit/mqueue/CMakeLists.txt b/lib/orogen/templates/typekit/mqueue/CMakeLists.txt index cf64d30..5ab1c57 100644 --- a/lib/orogen/templates/typekit/mqueue/CMakeLists.txt +++ b/lib/orogen/templates/typekit/mqueue/CMakeLists.txt @@ -1,10 +1,11 @@ # Generated from orogen/lib/orogen/templates/typekit/mqueue/CMakeLists.txt -find_package(Orocos-RTT) +# OrocosRTT_PREFIX has been set by the pkg-config find modules: +find_package(Orocos-RTT REQUIRED rtt-transport-mqueue HINTS ${OrocosRTT_PREFIX}/lib/cmake/orocos-rtt) # Set up generation of IDL files for MQueue support IF (NOT OROCOS-RTT_MQUEUE_FOUND) - MESSAGE(FATAL_ERROR "could not find development files for Orocos/MQueue") + MESSAGE(FATAL_ERROR "could not find development files for Orocos/MQueue. Please compile the RTT with MQueue support.") ENDIF(NOT OROCOS-RTT_MQUEUE_FOUND) set(MQueue_FILES "") -- 1.7.0.4