Force use of boost.thread on macosx

Any objections against this patch ? I think this is the final one for closing
https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=684

diff --git a/config/check_depend.cmake b/config/check_depend.cmake
index 87408a2..e532dcf 100644
--- a/config/check_depend.cmake
+++ b/config/check_depend.cmake
@@ -128,6 +128,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)
 
+  message( "Forcing ORO_OS_USE_BOOST_THREAD to ON")
+  set( ORO_OS_USE_BOOST_THREAD ON CACHE BOOL "Forced enable use of
Boost.thread on macosx." FORCE)
+
   list(APPEND OROCOS-RTT_LIBRARIES pthread dl)
   list(APPEND OROCOS-RTT_DEFINITIONS "OROCOS_TARGET=${OROCOS_TARGET}")
 else()

Peter

Force use of boost.thread on macosx

On Aug 25, 2009, at 04:10 , Peter Soetens wrote:

> Any objections against this patch ? I think this is the final one
> for closing
> https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=684
>
>

> diff --git a/config/check_depend.cmake b/config/check_depend.cmake
> index 87408a2..e532dcf 100644
> --- a/config/check_depend.cmake
> +++ b/config/check_depend.cmake
> @@ -128,6 +128,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)
>
> +  message( "Forcing ORO_OS_USE_BOOST_THREAD to ON")
> +  set( ORO_OS_USE_BOOST_THREAD ON CACHE BOOL "Forced enable use of
> Boost.thread on macosx." FORCE)
> +
>   list(APPEND OROCOS-RTT_LIBRARIES pthread dl)
>   list(APPEND OROCOS-RTT_DEFINITIONS "OROCOS_TARGET=${OROCOS_TARGET}")
> else()
> 

>
> Peter

Works for me.

That probably won't close the ticket unfortunately, based on my
working in the tests dir yesterday ... :-( ... more on that soon.
S