[Insight-developers] Checking for "fenv.h" with CMake

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 12 10:17:24 EST 2009


Brad,

In Utilities, gcdm uses CHECK_INCLUDE_FILES, it uses CMAKE_HAVE_FOO_H

vxl uses HAVE_FOO_H
itktiff uses HAVE_FOO_H

I checked VTK. It uses HAVE_FOO_H.

I also checked http://www.google.com/codesearch , google's search of
open source code. Most everyone seems to use HAVE_FOO_H.

Bill


On Thu, Nov 12, 2009 at 8:34 AM, Bradley Lowekamp
<blowekamp at mail.nih.gov> wrote:
> Hello,
> I am looking for advice on the best way to name a define in
> itkConfigure.h.in. For rounding I need the fegetround() methods, and cmake
> detection:
> CMakeLists:
> #-----------------------------------------------------------------------------
> # check if the platform has the header file "fenv.h" which has been added as
> part of the C99 standard
>
> INCLUDE(CheckIncludeFiles)
> CHECK_INCLUDE_FILES(fenv.h HAVE_FENV_H)
> itkConfigure.h.in:
> #cmakedefine HAVE_FENV_H
> I don't see any other checks for header in ITK itself. Should we proceed
> this define with "ITK_"? What's the best name and this is the best way to do
> this check?
> Thanks,
> Brad
>
> ========================================================
>
> Bradley Lowekamp
>
> Lockheed Martin Contractor for
>
> Office of High Performance Computing and Communications
>
> National Library of Medicine
>
> blowekamp at mail.nih.gov
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>


More information about the Insight-developers mailing list