Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
2c5f722e
Commit
2c5f722e
authored
15 years ago
by
Marcel Loose
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1310: Updated FindHDF5.cmake to latest CMake CVS version
parent
26779e22
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/FindHDF5.cmake
+11
-11
11 additions, 11 deletions
CMake/FindHDF5.cmake
with
11 additions
and
11 deletions
CMake/FindHDF5.cmake
+
11
−
11
View file @
2c5f722e
...
...
@@ -28,7 +28,7 @@
# with the HDF5 distribution that may be useful for regression testing.
#
# This module will define the following variables:
# HDF5_INCLUDE_DIR - Location of the hdf5 includes
# HDF5_INCLUDE_DIR
S
- Location of the hdf5 includes
# HDF5_DEFINITIONS - Required compiler definitions for HDF5
# HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings.
# HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings
...
...
@@ -151,7 +151,7 @@ macro( _HDF5_parse_compile_line
endforeach
()
endmacro
()
if
(
HDF5_INCLUDE_DIR AND HDF5_LIBRARIES
)
if
(
HDF5_INCLUDE_DIR
S
AND HDF5_LIBRARIES
)
# Do nothing: we already have HDF5_INCLUDE_PATH and HDF5_LIBRARIES in the
# cache, it would be a shame to override them
else
()
...
...
@@ -209,7 +209,7 @@ else()
Include
)
mark_as_advanced
(
HDF5_
${
LANGUAGE
}
_INCLUDE_DIR
)
list
(
APPEND HDF5_INCLUDE_DIR
${
HDF5_
${
LANGUAGE
}
_INCLUDE_DIR
}
)
list
(
APPEND HDF5_INCLUDE_DIR
S
${
HDF5_
${
LANGUAGE
}
_INCLUDE_DIR
}
)
set
(
HDF5_
${
LANGUAGE
}
_LIBRARY_NAMES
${
HDF5_
${
LANGUAGE
}
_LIBRARY_NAMES_INIT
}
...
...
@@ -266,8 +266,8 @@ else()
# We may have picked up some duplicates in various lists during the above
# process for the language bindings (both the C and C++ bindings depend on
# libz for example). Remove the duplicates.
if
(
HDF5_INCLUDE_DIR
)
list
(
REMOVE_DUPLICATES HDF5_INCLUDE_DIR
)
if
(
HDF5_INCLUDE_DIR
S
)
list
(
REMOVE_DUPLICATES HDF5_INCLUDE_DIR
S
)
endif
()
if
(
HDF5_LIBRARIES_DEBUG
)
list
(
REMOVE_DUPLICATES HDF5_LIBRARIES_DEBUG
)
...
...
@@ -292,16 +292,16 @@ else()
# If the HDF5 include directory was found, open H5pubconf.h to determine if
# HDF5 was compiled with parallel IO support
set
(
HDF5_IS_PARALLEL FALSE
)
if
(
HDF5_INCLUDE_DIR
)
if
(
EXISTS
"
${
HDF5_INCLUDE_DIR
}
/h5pubconf.h"
)
file
(
STRINGS
"
${
HDF5_INCLUDE_DIR
}
/H5pubconf.h"
foreach
(
_dir
HDF5_INCLUDE_DIR
S
)
if
(
EXISTS
"
${
_dir
}
/h5pubconf.h"
)
file
(
STRINGS
"
${
_dir
}
/H5pubconf.h"
HDF5_HAVE_PARALLEL_DEFINE
REGEX
"HAVE_PARALLEL 1"
)
if
(
HDF5_HAVE_PARALLEL_DEFINE
)
set
(
HDF5_IS_PARALLEL TRUE
)
endif
()
endif
()
end
i
f
()
endf
oreach
()
set
(
HDF5_IS_PARALLEL
${
HDF5_IS_PARALLEL
}
CACHE BOOL
"HDF5 library compiled with parallel IO support"
)
mark_as_advanced
(
HDF5_IS_PARALLEL
)
...
...
@@ -310,11 +310,11 @@ endif()
find_package_handle_standard_args
(
HDF5 DEFAULT_MSG
HDF5_LIBRARIES
HDF5_INCLUDE_DIR
HDF5_INCLUDE_DIR
S
)
mark_as_advanced
(
HDF5_INCLUDE_DIR
HDF5_INCLUDE_DIR
S
HDF5_LIBRARIES
HDF5_DEFINTIONS
HDF5_LIBRARY_DIRS
...
...
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