Commit e777ce6b authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Merge branch 'cherry-pick-c53776c6' into '1.0'

Cherry-pick of "Merge branch 'hdf5' into 'master'" to 1.0

See merge request !335
parents 648557c0 998ab71a
......@@ -14,25 +14,21 @@ find_package( ZLIB REQUIRED )
list( GET ZLIB_INCLUDE_DIRS 0 _zlibInclude )
list( GET ZLIB_LIBRARY_DIRS 0 _zlibLibrary )
# Extra build argument(s):
set( _extraConfig )
if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
set( _extraConfig --enable-build-mode=debug )
else()
set( _extraConfig --enable-build-mode=production )
endif()
# Build HDF5:
ExternalProject_Add( HDF5
PREFIX ${CMAKE_BINARY_DIR}
URL http://cern.ch/atlas-software-dist-eos/externals/hdf5/hdf5-1.10.1.tar.gz
URL_MD5 43a2f9466702fb1db31df98ae6677f15
URL http://cern.ch/atlas-software-dist-eos/externals/hdf5/hdf5-1.10.2.tar.gz
URL_MD5 8d4eae84e533efa57496638fd0dca8c3
INSTALL_DIR ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${_buildDir}
--with-zlib=${_zlibInclude},${_zlibLibrary}
--with-pthread=/usr/include,/usr/lib
--enable-cxx --enable-hl --enable-threadsafe --enable-unsupported
${_extraConfig} )
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${_buildDir}
-DHDF5_BUILD_CPP_LIB:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
-DZLIB_LIBRARY_DIR:FILEPATH=${_zlibLibrary}
-DZLIB_INCLUDE_DIR:PATH=${_zlibInclude}
LOG_CONFIGURE 1
)
ExternalProject_Add_Step( HDF5 purgeBuild
COMMAND ${CMAKE_COMMAND} -E remove_directory "<BINARY_DIR>"
COMMAND ${CMAKE_COMMAND} -E make_directory "<BINARY_DIR>"
......@@ -42,8 +38,6 @@ ExternalProject_Add_Step( HDF5 purgeBuild
DEPENDERS patch )
ExternalProject_Add_Step( HDF5 buildinstall
COMMAND ${CMAKE_COMMAND} -E remove -f ${_buildDir}/lib/libdynlib*
COMMAND ${CMAKE_COMMAND} -E chdir ${_buildDir}/bin
${_buildDir}/bin/h5redeploy -prefix=\${${CMAKE_PROJECT_NAME}_DIR} -force
COMMAND ${CMAKE_COMMAND} -E copy_directory ${_buildDir}/ <INSTALL_DIR>
COMMENT "Installing HDF5 into the build area"
DEPENDEES install )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment