-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHDF5: Fix the build with Intel compiler
Uses a patch to revert HDFGroup/hdf5@f6ae241#diff-eff1bae8d512738be4c5337b594867ef4f22b5f8940b8fbdcc3e9a78e1419bb6R225 Also see HDFGroup/hdf5#4637 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
1 parent
1877b42
commit d938eda
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/config/cmake/HDF5UseFortran.cmake 2024-10-25 15:16:10.038600011 +0300 | ||
+++ b/config/cmake/HDF5UseFortran.cmake 2024-10-25 15:16:40.464403575 +0300 | ||
@@ -218,10 +218,6 @@ | ||
string (REGEX REPLACE "," ";" VAR "${pac_validLogicalKinds}") | ||
|
||
set(CMAKE_REQUIRED_QUIET TRUE) | ||
- set(save_CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS}) | ||
- if (CMAKE_Fortran_COMPILER_ID MATCHES "Intel") | ||
- set(CMAKE_Fortran_FLAGS "-warn error") | ||
- endif () | ||
|
||
foreach (KIND ${VAR}) | ||
unset(MPI_LOGICAL_KIND CACHE) | ||
@@ -248,7 +244,6 @@ | ||
message (FATAL_ERROR "Failed to determine LOGICAL KIND for MPI") | ||
endif () | ||
set(CMAKE_REQUIRED_QUIET FALSE) | ||
- set(CMAKE_Fortran_FLAGS ${save_CMAKE_Fortran_FLAGS}) | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters