summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-03-25 15:56:48 (GMT)
committerGitHub <noreply@github.com>2022-03-25 15:56:48 (GMT)
commitf73b4c618cb680f8be9b2f2510c34442ec24d713 (patch)
tree5259867a2d14bddb9f4d8c13b95174e153ee5aa9
parent85b4da0b3c97ca929016b8ef790655618632074f (diff)
downloadhdf5-f73b4c618cb680f8be9b2f2510c34442ec24d713.zip
hdf5-f73b4c618cb680f8be9b2f2510c34442ec24d713.tar.gz
hdf5-f73b4c618cb680f8be9b2f2510c34442ec24d713.tar.bz2
Windows and *nix use different forms for warnings #1515 (#1524)
-rw-r--r--MANIFEST3
-rw-r--r--config/cmake/HDFFortranCompilerFlags.cmake6
-rw-r--r--config/intel-warnings/ifort-general2
-rw-r--r--config/intel-warnings/win-ifort-general1
4 files changed, 7 insertions, 5 deletions
diff --git a/MANIFEST b/MANIFEST
index a50d0f4..830d86d 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -199,9 +199,10 @@
./config/intel-warnings/18
./config/intel-warnings/developer-general
./config/intel-warnings/general
+./config/intel-warnings/ifort-general
./config/intel-warnings/win-developer-general
./config/intel-warnings/win-general
-./config/intel-warnings/ifort-general
+./config/intel-warnings/win-ifort-general
./config/site-specific/BlankForm
diff --git a/config/cmake/HDFFortranCompilerFlags.cmake b/config/cmake/HDFFortranCompilerFlags.cmake
index 754259e..84b3ebe 100644
--- a/config/cmake/HDFFortranCompilerFlags.cmake
+++ b/config/cmake/HDFFortranCompilerFlags.cmake
@@ -62,7 +62,7 @@ if (NOT MSVC AND NOT MINGW)
# General flags
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/intel-warnings/ifort-general")
- list (APPEND HDF5_CMAKE_Fortran_FLAGS "-stand:f03" "-free")
+ list (APPEND HDF5_CMAKE_Fortran_FLAGS "-stand f03" "-free")
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/gnu-warnings/gfort-general")
list (APPEND HDF5_CMAKE_Fortran_FLAGS "-ffree-form" "-fimplicit-none")
@@ -118,8 +118,8 @@ if (NOT MSVC AND NOT MINGW)
endif ()
else ()
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
- #ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/intel-warnings/win-ifort-general")
- list (APPEND HDF5_CMAKE_Fortran_FLAGS "/warn:all" "/stand:f03" "/free")
+ ADD_H5_FLAGS (HDF5_CMAKE_Fortran_FLAGS "${HDF5_SOURCE_DIR}/config/intel-warnings/win-ifort-general")
+ list (APPEND HDF5_CMAKE_Fortran_FLAGS "/stand:f03" "/free")
endif ()
endif ()
diff --git a/config/intel-warnings/ifort-general b/config/intel-warnings/ifort-general
index a9da0e5..1644c7c 100644
--- a/config/intel-warnings/ifort-general
+++ b/config/intel-warnings/ifort-general
@@ -1 +1 @@
--warn:all
+-warn all
diff --git a/config/intel-warnings/win-ifort-general b/config/intel-warnings/win-ifort-general
new file mode 100644
index 0000000..a335959
--- /dev/null
+++ b/config/intel-warnings/win-ifort-general
@@ -0,0 +1 @@
+/warn:all