Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
ccb3939d
Commit
ccb3939d
authored
3 years ago
by
Lars Bilke
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Check for hdf5 mpi config at cmake time.
parent
4fcc8bb8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/Dependencies.cmake
+15
-3
15 additions, 3 deletions
scripts/cmake/Dependencies.cmake
with
15 additions
and
3 deletions
scripts/cmake/Dependencies.cmake
+
15
−
3
View file @
ccb3939d
...
...
@@ -212,19 +212,31 @@ else()
EXCLUDE_FROM_ALL YES
)
if
(
HDF5_ADDED
)
target_include_directories
(
hdf5-static INTERFACE
${
HDF5_BINARY_DIR
}
)
list
(
APPEND DISABLE_WARNINGS_TARGETS hdf5-static
)
set
(
HDF5_LIBRARIES hdf5-static
)
if
(
ZLIB_ADDED
)
list
(
APPEND HDF5_LIBRARIES zlibstatic
)
endif
()
set
(
HDF5_C_INCLUDE_DIR
${
HDF5_SOURCE_DIR
}
)
set
(
HDF5_INCLUDE_DIR
${
HDF5_SOURCE_DIR
}
)
set
(
HDF5_C_INCLUDE_DIR
${
HDF5_SOURCE_DIR
}
/src
)
set
(
HDF5_INCLUDE_DIR
${
HDF5_SOURCE_DIR
}
/src
)
target_include_directories
(
hdf5-static INTERFACE
${
HDF5_BINARY_DIR
}
${
HDF5_INCLUDE_DIR
}
)
else
()
find_package
(
HDF5 REQUIRED
)
endif
()
endif
()
if
(
OGS_USE_PETSC
)
include
(
CheckCXXSymbolExists
)
set
(
CMAKE_REQUIRED_INCLUDES
"
${
HDF5_INCLUDE_DIR
}
"
"
${
HDF5_BINARY_DIR
}
"
)
set
(
CMAKE_REQUIRED_LIBRARIES
"
${
HDF5_LIBRARIES
}
"
)
check_cxx_symbol_exists
(
H5Pset_fapl_mpio hdf5.h HAVE_H5Pset_fapl_mpio
)
unset
(
CMAKE_REQUIRED_INCLUDES
)
if
(
NOT HAVE_H5Pset_fapl_mpio
)
message
(
FATAL_ERROR
"HDF5 was not build with MPI support! "
"(Enable with HDF5_ENABLE_PARALLEL)"
)
endif
()
endif
()
# Does not compile in Debug-mode, see #3175.
if
(
CMAKE_BUILD_TYPE STREQUAL
"Release"
AND OGS_BUILD_TESTING
)
set
(
XDMF_LIBNAME OgsXdmf CACHE STRING
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment