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(NOT HAVE_FINITE)
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})
set(HAVE_FINITE ${_HAVE_FINITE} CACHE INTERNAL "Have function _finite")
endif(NOT HAVE_FINITE)
It works fine, but if there is some change to the cmake files, cmake
runs again even if I only run nmake (which is ok). But during this
configuration cmake "forgets" about the _HAVE_FINITE variable and also
doesn't test anymore for it. So for Visual C++, where _HAVE_FINITE is
set, the second run doesn't compile anymore - I have to delete the
directory and reconfigure, which is quite annoying. I'm not quite sure
why HAVE_FINITE is internally cached and set to ${_HAVE_FINITE} (?) and
also only if finite wasn't found - so if finite is found, HAVE_FINITE is
not in the cache, or?
Anyway, do you both can help me to solve this problem, since I'm not
sure how to proceed.
Thanks,
Werner
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886
email: [email protected]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel