Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CrysFML
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scientific Software
CrysFML
Commits
40fa8b83
Commit
40fa8b83
authored
May 14, 2020
by
Remi Perenon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving cmake hdf5 helper to cmake directory
parent
54f35c47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
35 deletions
+29
-35
Src/hdf5.cmake
Src/hdf5.cmake
+0
-29
cmake/Findhdf5_crysfml.cmake
cmake/Findhdf5_crysfml.cmake
+29
-6
No files found.
Src/hdf5.cmake
deleted
100644 → 0
View file @
54f35c47
# Find hdf5 libraries
find_library
(
hdf5_fortran NAME libhdf5_fortran PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5_fortran STREQUAL hdf5_fortran-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5_fortran not found"
)
endif
()
find_library
(
hdf5_f90cstub NAME libhdf5_f90cstub PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5_f90cstub STREQUAL hdf5_f90cstub-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5_f90cstub not found"
)
endif
()
find_library
(
hdf5 NAME libhdf5 PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5 STREQUAL hdf5-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5 not found"
)
endif
()
find_library
(
szip NAME libszip PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
szip STREQUAL szip-NOTFOUND
)
message
(
FATAL_ERROR
"libszip not found"
)
endif
()
find_library
(
zlib NAME libzlib PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
zlib STREQUAL zlib-NOTFOUND
)
message
(
FATAL_ERROR
"libzlib not found"
)
endif
()
set
(
HDF5_LIBS libhdf5_fortran libhdf5_f90cstub libhdf5 libszip libzlib
)
cmake/Findhdf5_crysfml.cmake
View file @
40fa8b83
if
(
DEFINED ENV{CRYSFML_HDF5_DIR}
)
set
(
HDF5_HINTS_DIR
"$ENV{CRYSFML_HDF5_DIR}"
"$ENV{CRYSFML_HDF5_DIR}/include"
)
find_path
(
HDF5_INCLUDE_DIR hdf5.h HINTS
${
HDF5_HINTS_DIR
}
)
else
()
find_package
(
HDF5
)
endif
()
\ No newline at end of file
# Find hdf5 libraries
find_library
(
hdf5_fortran NAME libhdf5_fortran PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5_fortran STREQUAL hdf5_fortran-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5_fortran not found"
)
endif
()
find_library
(
hdf5_f90cstub NAME libhdf5_f90cstub PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5_f90cstub STREQUAL hdf5_f90cstub-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5_f90cstub not found"
)
endif
()
find_library
(
hdf5 NAME libhdf5 PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
hdf5 STREQUAL hdf5-NOTFOUND
)
message
(
FATAL_ERROR
"libhdf5 not found"
)
endif
()
find_library
(
szip NAME libszip PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
szip STREQUAL szip-NOTFOUND
)
message
(
FATAL_ERROR
"libszip not found"
)
endif
()
find_library
(
zlib NAME libzlib PATHS
${
HDF5_LIBRARY_PATH
}
)
if
(
zlib STREQUAL zlib-NOTFOUND
)
message
(
FATAL_ERROR
"libzlib not found"
)
endif
()
set
(
HDF5_LIBS libhdf5_fortran libhdf5_f90cstub libhdf5 libszip libzlib
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment