[svn-r22469] MinGW Flags need to use dash

set WINSOCK2_H
      do not test for endianess
      
Tested: windows 32 minGW
This commit is contained in:
Allen Byrne 2012-06-18 12:29:44 -05:00
parent 603fc9dbe0
commit 79b36622aa

View File

@ -121,12 +121,13 @@ IF (WIN32)
IF (MINGW)
SET (H5_HAVE_MINGW 1)
SET (WINDOWS 1) # MinGW tries to imitate Windows
SET (CMAKE_REQUIRED_FLAGS "-DWIN32_LEAN_AND_MEAN=1 -DNOGDI=1")
ENDIF (MINGW)
SET (H5_HAVE_WIN32_API 1)
SET (CMAKE_REQUIRED_LIBRARIES "ws2_32.lib;wsock32.lib")
SET (CMAKE_REQUIRED_FLAGS "/DWIN32_LEAN_AND_MEAN=1 /DNOGDI=1")
IF (NOT UNIX AND NOT CYGWIN AND NOT MINGW)
SET (WINDOWS 1)
SET (CMAKE_REQUIRED_FLAGS "/DWIN32_LEAN_AND_MEAN=1 /DNOGDI=1")
IF (MSVC)
SET (H5_HAVE_VISUAL_STUDIO 1)
ENDIF (MSVC)
@ -172,7 +173,9 @@ IF (WINDOWS)
SET (H5_HAVE_TIMEZONE 1)
SET (H5_HAVE_GETTIMEOFDAY 1)
SET (H5_LONE_COLON 0)
IF (MINGW)
SET (H5_HAVE_WINSOCK2_H 1)
ENDIF (MINGW)
SET (H5_HAVE_LIBWS2_32 1)
SET (H5_HAVE_LIBWSOCK32 1)
ENDIF (WINDOWS)
@ -217,7 +220,9 @@ IF (WINDOWS)
SET (USE_INCLUDES ${USE_INCLUDES} "windows.h")
ENDIF (WINDOWS)
TEST_BIG_ENDIAN(H5_WORDS_BIGENDIAN)
IF (NOT WINDOWS)
TEST_BIG_ENDIAN(H5_WORDS_BIGENDIAN)
ENDIF (NOT WINDOWS)
# For other specific tests, use this MACRO.
MACRO (HDF5_FUNCTION_TEST OTHER_TEST)