From e2676cfa671a667536d5e6299fe1325f7451d1e9 Mon Sep 17 00:00:00 2001 From: Stephen Roderick Date: Mon, 2 Nov 2009 10:56:32 -0500 Subject: [PATCH] [cmake] Prevent double find of boost thread package on macosx --- config/check_depend.cmake | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/config/check_depend.cmake b/config/check_depend.cmake index 37df1f5..f7a5728 100644 --- a/config/check_depend.cmake +++ b/config/check_depend.cmake @@ -138,7 +138,9 @@ endif() if(OROCOS_TARGET STREQUAL "macosx") set(OROPKG_OS_MACOSX TRUE CACHE INTERNAL "This variable is exported to the rtt-config.h file to expose our target choice to the code." FORCE) - find_package(Boost 1.33 COMPONENTS thread REQUIRED) + if (NOT Boost_THREAD_FOUND) + find_package(Boost 1.33 COMPONENTS thread REQUIRED) + endif () list(APPEND OROCOS-RTT_INCLUDE_DIRS ${Boost_thread_INCLUDE_DIRS} ) message( "Forcing ORO_OS_USE_BOOST_THREAD to ON") -- 1.6.4.4