diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-07-12 18:04:44 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-07-17 16:58:02 (GMT) |
commit | 7174b5c135f39b448925551c433cb60fc618d7af (patch) | |
tree | d443878ceb9fd86753bc0169be9ea2986c0fad89 /config/cmake_ext_mod | |
parent | 9c04e508898da677fd98fcb2f3291b9152e69320 (diff) | |
download | hdf5-7174b5c135f39b448925551c433cb60fc618d7af.zip hdf5-7174b5c135f39b448925551c433cb60fc618d7af.tar.gz hdf5-7174b5c135f39b448925551c433cb60fc618d7af.tar.bz2 |
HDFFV-8631 mingw is different platform
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r-- | config/cmake_ext_mod/ConfigureChecks.cmake | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/config/cmake_ext_mod/ConfigureChecks.cmake b/config/cmake_ext_mod/ConfigureChecks.cmake index 63d9ee9..35ec3e9 100644 --- a/config/cmake_ext_mod/ConfigureChecks.cmake +++ b/config/cmake_ext_mod/ConfigureChecks.cmake @@ -61,14 +61,15 @@ endmacro () # ---------------------------------------------------------------------- # WINDOWS Hard code Values # ---------------------------------------------------------------------- - set (WINDOWS) + +if (MINGW) + set (${HDF_PREFIX}_HAVE_MINGW 1) + set (WINDOWS 1) # MinGW tries to imitate Windows + set (CMAKE_REQUIRED_FLAGS "-DWIN32_LEAN_AND_MEAN=1 -DNOGDI=1") +endif () + if (WIN32) - if (MINGW) - set (${HDF_PREFIX}_HAVE_MINGW 1) - set (WINDOWS 1) # MinGW tries to imitate Windows - set (CMAKE_REQUIRED_FLAGS "-DWIN32_LEAN_AND_MEAN=1 -DNOGDI=1") - endif () set (${HDF_PREFIX}_HAVE_WIN32_API 1) set (HDF5_REQUIRED_LIBRARIES "ws2_32.lib;wsock32.lib") if (NOT UNIX AND NOT MINGW) |