summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorWill Dicharry <wdicharry@stellarscience.com>2011-05-25 19:19:26 (GMT)
committerWill Dicharry <wdicharry@stellarscience.com>2011-05-25 19:19:26 (GMT)
commite38216c6e97b7ba6dbac0829ae9cdf72525cc5cd (patch)
treeee4fc563d1379ada400e1e554be2b18bb9f04cf3 /Modules/FindHDF5.cmake
parent93ba19e0709168e3c820f7936f81c0927b7bb392 (diff)
downloadCMake-e38216c6e97b7ba6dbac0829ae9cdf72525cc5cd.zip
CMake-e38216c6e97b7ba6dbac0829ae9cdf72525cc5cd.tar.gz
CMake-e38216c6e97b7ba6dbac0829ae9cdf72525cc5cd.tar.bz2
Remove unnecessary mark_as_advanced from FindHDF5.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake21
1 files changed, 6 insertions, 15 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 92dad21..6f01ea0 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -363,6 +363,12 @@ if( NOT HDF5_FOUND )
"HDF5 library compiled with parallel IO support" )
mark_as_advanced( HDF5_IS_PARALLEL )
+ # For backwards compatibility we set HDF5_INCLUDE_DIR to the value of
+ # HDF5_INCLUDE_DIRS
+ if( HDF5_INCLUDE_DIRS )
+ set( HDF5_INCLUDE_DIR "${HDF5_INCLUDE_DIRS}" )
+ endif()
+
endif()
find_package_handle_standard_args( HDF5 DEFAULT_MSG
@@ -370,18 +376,3 @@ find_package_handle_standard_args( HDF5 DEFAULT_MSG
HDF5_INCLUDE_DIRS
)
-if( HDF5_FOUND )
- mark_as_advanced(
- HDF5_INCLUDE_DIRS
- HDF5_LIBRARIES
- HDF5_DEFINTIONS
- HDF5_LIBRARY_DIRS
- HDF5_C_COMPILER_EXECUTABLE
- HDF5_CXX_COMPILER_EXECUTABLE
- HDF5_Fortran_COMPILER_EXECUTABLE )
-
- # For backwards compatibility we set HDF5_INCLUDE_DIR to the value of
- # HDF5_INCLUDE_DIRS
- set( HDF5_INCLUDE_DIR "${HDF5_INCLUDE_DIRS}" )
-endif()
-