Hi Alan,
>
> IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
>
> Is CMake-2.2 (or so) logic which I never understood either, but from
> explanations I got years ago on the CMake mailing list it works on all
> versions of CMake just like the more modern
>
> IF(NOT DEFINED VARIABLE)
>
> which is true if t
On 2009-02-27 22:13+0100 Werner Smekal wrote:
> Hi Alan,
> [out of order]What I don't understand is, that
>
> check_symbol_exists(finite "math.h" HAVE_FINITE)
> if(NOT HAVE_FINITE)
> check_function_exists(finite HAVE_FINITE)
> endif(NOT HAVE_FINITE)
>
> Doesn't work. check_function_exists is calle
Hi Alan,
>
> There are a number of problems in the above logic.
>
> (*) HAVE_FINITE, HAVE_FINITE2, _HAVE_FINITE and _HAVE_FINITE2 are all
> cached
> as a result of check_symbol_exists and check_function_exists. (See the
> commands
>
> SET(${VARIABLE} 1 CACHE INTERNAL "Have symbol ${SYMBOL}")
>
> a
On 2009-02-26 21:20+0100 Werner Smekal wrote:
> Hi Alan and Andrew,
>
> in plplot.cmake we determine if finite/isnan/isinf or
> _finite/_isnan/_isinf is available with such code
>
> check_symbol_exists(finite "math.h" HAVE_FINITE)
> if(NOT HAVE_FINITE)
> check_function_exists(finite HAVE_FINITE2)
Hi Alan and Andrew,
in plplot.cmake we determine if finite/isnan/isinf or
_finite/_isnan/_isinf is available with such code
check_symbol_exists(finite "math.h" HAVE_FINITE)
if(NOT HAVE_FINITE)
check_function_exists(finite HAVE_FINITE2)
endif(NOT HAVE_FINITE)
set(HAVE_FINITE ${HAVE_FINITE2})
if