2012/2/6 Allen D Byrne <[email protected]>:
> Maik,
>
> On windows using VS in 1.8.8, we include a function to provide gettimeofday.
> It is defined in the src\H5win32defs.h file,
>
> look for the #ifdef H5_HAVE_VISUAL_STUDIO
>
> section within the #ifdef H5_HAVE_WIN32_API section.
>
>
> The function is sourced in the src\H5system.c file.
>
>
> CMake should properly set the two defines " H5_HAVE_VISUAL_STUDIO" and
> "H5_HAVE_WIN32_API", check the generated H5pubconf.h in the build folder.
>
>

Ah, I see, thank you.

I can see where the confusion resulted from.  The name
H5_HAVE_VISUAL_STUDIO is most likely based on the assumption that
whenever the MicroSoft Visual C compiler (MSVC) is used, Visual Studio
is used.
 - Windows => Visual Studio
 - Non Windows => autotools

However, with CMake you can generate Visual Studio project files for
C/C++ (*.vcproj) and Fortran (*.vfproj), NMake Makefiles or Unix
Makefiles (cygwin) to build with MSVC.

Having CMake define H5_HAVE_VISUAL_STUDIO would work, but I suggest we
move to an accurate symbol name to avoid future confusion.  That would
be
 - H5_HAVE_MSVC


Best,
Maik

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to