Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
André Pedro
CMake
Commits
149539d9
Commit
149539d9
authored
8 years ago
by
Robert Maynard
Browse files
Options
Downloads
Patches
Plain Diff
FindHDF5: Handle HDF5 builds with non-suffixed components
parent
f30b0fec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/FindHDF5.cmake
+7
-0
7 additions, 0 deletions
Modules/FindHDF5.cmake
with
7 additions
and
0 deletions
Modules/FindHDF5.cmake
+
7
−
0
View file @
149539d9
...
...
@@ -362,6 +362,13 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
set
(
_suffix
"-shared"
)
endif
()
foreach
(
_lang
${
HDF5_LANGUAGE_BINDINGS
}
)
#Older versions of hdf5 don't have a static/shared suffix so
#if we detect that occurrence clear the suffix
if
(
_suffix AND NOT TARGET
${
HDF5_
${
_lang
}
_TARGET
}${
_suffix
}
)
set
(
_suffix
""
)
endif
()
get_target_property
(
_lang_location
${
HDF5_
${
_lang
}
_TARGET
}${
_suffix
}
LOCATION
)
if
(
_lang_location
)
set
(
HDF5_
${
_lang
}
_LIBRARY
${
_lang_location
}
CACHE PATH
...
...
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