[CMake] threads and math lib, status

Andy Cedilnik andy.cedilnik at kitware.com
Thu Nov 24 10:50:31 EST 2005


Hi Prakash,

Set CMAKE_REQUIRED_LIBRARIES before running the macro. This variable 
should be set to the list of variables you want to link in.

UNIX is set on Darwin.

       Andy

Prakash Punnoor wrote:
> Hi,
>
> I found this from 2003:
>
> http://public.kitware.com/pipermail/cmake/2003-September/004262.html
>
> I wonder what is the current status. I want to clean up my CMake project
> file which currently detects stuff onits own. I scanned throught the
> Threads package whcih basically does what I need - missing one thing: Do
> you support MorphOS? OpenAL at east did it. Though we are considering
> dropping it, it currently is still supported. We test for the threads
> lib this way (adjusted to cmake for my needs):
>
> CHECK_INCLUDE_FILE(dlfcn.h MOSTHREAD_AVAILABLE)
>
> Libs don't seem to be linked to explicitly.
>
> In the old thread Brad said one could link to libm on Unix and Windows
> doesn't need it. What about Darwin? Does it need libm? Currently OpenAL
> checks whether libm exists on Darwin but if not, it doesn't care,
> either, whereas on Unixes it errors out. Is Unix defined on Darwin?
> AFAIK it is BSD based.
>
> Cheers,
>
> Prakash
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>   




More information about the CMake mailing list