@@ -181,72 +181,6 @@ if(WITH_BOOST_ODE)
181181 add_definitions (-DUSE_BOOST_ODE -UUSE_GSL)
182182endif ()
183183
184- # NSDF5 support. Disabled by default.
185- if (WITH_NSDF)
186- find_package (HDF5 COMPONENTS CXX HL)
187- if (NOT HDF5_FOUND)
188- message (
189- "==================================================================\n "
190- " HDF5 not found. Disabling NSDF support.\n\n "
191- " If you need NSDF support, please install hdf5-dev or hdf5-devel\n "
192- " package or equivalent.\n\n "
193- " $ sudo apt-get install libhdf5-dev \n "
194- " $ sudo yum install libhdf5-devel \n "
195- " $ brew install hdf5 \n\n "
196- " Otherwise, continue with 'make' and 'make install' \n "
197- " If you install hdf5 to non-standard path, export environment \n "
198- " variable HDF5_ROOT to the location. Rerun cmake \n "
199- "================================================================ \n "
200- )
201- endif (NOT HDF5_FOUND)
202-
203- if (HDF5_FOUND)
204- include_directories ( ${HDF5_INCLUDE_DIRS} )
205- add_definitions ( -DUSE_HDF5 -DENABLE_NSDF )
206- if (HDF5_USE_STATIC_LIBRARIES)
207- message (STATUS "Finding static HDF5 libraries in $ENV{HDF5_ROOT} " )
208- find_library (HDF5_CXX_LIBRARIES NAMES libhdf5.a
209- PATHS $ENV{HDF5_ROOT} /lib $ENV{HDF5_ROOT} /lib64
210- )
211- find_library (HDF5_HL_LIBRARIES NAMES libhdf5_hl.a
212- PATHS $ENV{HDF5_ROOT} /lib $ENV{HDF5_ROOT} /lib64
213- )
214- set (HDF5_LIBRARIES ${HDF5_CXX_LIBRARIES} ${HDF5_HL_LIBRARIES} )
215- endif ()
216-
217-
218- # Make sure, HDF5_HL_LIBRARIES are set. The COMPONENTS in find_package may
219- # or may not work. See BhallaLab/moose-core#163.
220- if (NOT HDF5_HL_LIBRARIES)
221- set (HDF5_HL_LIBRARIES ${HDF5_HL_LIBRARIES} )
222- endif (NOT HDF5_HL_LIBRARIES)
223- list (APPEND HDF5_LIBRARIES ${HDF5_HL_LIBRARIES} )
224-
225- # message(STATUS "MOOSE will use following HDF5 ${HDF5_LIBRARIES}" )
226- foreach (HDF5_LIB ${HDF5_LIBRARIES} )
227- if (HDF5_LIB)
228- get_filename_component ( HDF5_LIB_EXT ${HDF5_LIB} EXT )
229- if (HDF5_LIB_EXT)
230- if (${HDF5_LIB_EXT} STREQUAL ".a" )
231- list (APPEND STATIC_LIBRARIES ${HDF5_LIB} )
232- else ( )
233- list (APPEND SYSTEM_SHARED_LIBS ${HDF5_LIB} )
234- endif ( )
235- endif ()
236- endif ( )
237- endforeach ( )
238- else ( HDF5_FOUND )
239- message (STATUS "HDF5 is not found" )
240- endif ( HDF5_FOUND )
241- # This is a fix for new HDF5 package on Debian/Ubuntu which installs hdf5
242- # headers in non-standard path. issue #80.
243- if (HDF5_LIBRARY_DIRS)
244- set_target_properties ( libmoose PROPERTIES LINK_FLAGS "-L${HDF5_LIBRARY_DIRS} " )
245- endif ()
246- else (WITH_NSDF)
247- message (STATUS "NSDF support is disabled" )
248- endif (WITH_NSDF)
249-
250184# Openmpi
251185if (WITH_MPI)
252186 find_package (MPI REQUIRED)
0 commit comments