瀏覽代碼

Remove unnecessary mark_as_advanced from FindHDF5.

Will Dicharry 14 年之前
父節點
當前提交
e38216c6e9
共有 1 個文件被更改,包括 6 次插入15 次删除
  1. 6 15
      Modules/FindHDF5.cmake

+ 6 - 15
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()
-