[vtk-developers] Problem with VTK_HAS_STD_ISFINITE

Brad King brad.king at kitware.com
Wed Jul 31 09:15:13 EDT 2013


On 07/31/2013 09:07 AM, Marcus D. Hanwell wrote:
> On Wed, Jul 31, 2013 at 8:13 AM, David Gobbi <david.gobbi at gmail.com> wrote:
>> The related variable VTK_HAS_ISFINITE is being incorrectly set, but I
>> can fix that as soon as VTK moves to a more recent version of CMake.
>> Right now, VTK uses the following check:
>>  check_symbol_exists(isfinite "math.h" VTK_HAS_ISFINITE)
>> This check is not valid, because vtkMath includes "cmath", not
>> "math.h".  The check should really be this:
>>  check_cxx_symbol_exists(isfinite "cmath" VTK_HAS_ISFINITE)
>> Unfortunately the cmake_cxx_symbol_exists() macro is not available in
>> CMake 2.8.5.
> 
> Will CMake 2.8.8 bring in the feature you need? I proposed bumping our
> CMake dependency yesterday, it would be good to know if it helps here
> (or what version is required otherwise).

The check_cxx_symbol_exists macro was added in CMake 2.8.6.

FWIW, Debian stable has CMake 2.8.9 so IMO 2.8.8 is fine
as a minimum required version.

-Brad



More information about the vtk-developers mailing list