[CMake] build.h instead of config.h

luxInteg lux-integ at btconnect.com
Tue Jan 18 18:51:56 EST 2011


On Tuesday 18 January 2011 18:14:42 Eric Noulard wrote:
> Why are you willing to build gsl with CMake in the first place?
Ha
since when was copulation used soley  for procreation?


joke aside
> 1) Some CheckFunctionExists tests needs the math library
>    so that you need to
>     set(CMAKE_REQUIRED_LIBRARIES m)
>    before calling
>      CHECK_FUNCTION_EXISTS(asinh HAVE_ASINH)
> 
did not work 

> You are right but the fact is autotools does not have builtin function
> for that either.
> They are crafted inside gsl/configure.ac.
asinh, acosh, atanh all depend on lib_m  and math.h
so     if  one were to  cook  some  kind of  'find script'
to find  lib_m (with asinh etc)  and math.h,  could  one then not  set
HAVE_ASINH  et al as true?     And dispence with the  redundant 
CHECK_FUNCTION_EXISTS(asinh HAVE_ASINH) et al?



and  further down the line  once one identifies the dependencies for the ieee 
stuff  could not the same procedure be adopted.?


sincerely
luxInteg





More information about the CMake mailing list