Skip to content

Commit

Permalink
simplify defauls
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Apr 29, 2021
1 parent 359a563 commit a279656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.6
3.6.7
23 changes: 1 addition & 22 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,8 @@ project(HDF5_build LANGUAGES C Fortran)

include(${PROJECT_SOURCE_DIR}/../cmake/libraries.cmake)

include(ExternalProject)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set(prefix ~/lib_gcc)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
set(prefix ~/lib_intel)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL IntelLLVM)
set(prefix ~/lib_intel)
else()
set(prefix ~/local)
endif()

get_filename_component(prefix ${prefix} ABSOLUTE)
set(CMAKE_INSTALL_PREFIX ${prefix} CACHE PATH "top-level install path" FORCE)
endif()

set(EP_UPDATE_DISCONNECTED true)

set(ZLIB_ROOT ${CMAKE_INSTALL_PREFIX})
set(HDF5_ROOT ${CMAKE_INSTALL_PREFIX})

message(STATUS "Building and installing HDF5 to ${HDF5_ROOT}")
message(STATUS "Building and installing HDF5 to ${CMAKE_INSTALL_PREFIX}")

include(${PROJECT_SOURCE_DIR}/../cmake/build_hdf5.cmake)

0 comments on commit a279656

Please sign in to comment.