[CMake] Math lib with CMAKE_REQUIRED_LIBRARIES

Brad King brad.king at kitware.com
Thu May 5 09:02:01 EDT 2005


Moreland, Kenneth wrote:
> If this comes up a lot, perhaps there should be some CMake convention to
> handle it.  Could CMake automatically add the math library where
> appropriate whenever it links any C or C++ program?

I don't know of any simple way to detect whether the math library will 
be needed.  One of the goals of CMake is to reproduce native system 
behavior when possible.  UNIX runtime libraries have the math library 
separate, Windows runtime libraries do not.

-Brad


More information about the CMake mailing list