Skip to content

Commit

Permalink
Remove OPTION as appending to the list will not overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Feb 7, 2025
1 parent 998eed6 commit 4614bbb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
1 change: 0 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"HDF5_BUILD_GENERATORS": "ON",
"HDF5_ENABLE_ALL_WARNINGS": "ON",
"HDF5_MINGW_STATIC_GCC_LIBS": "ON",
"HDF5_APPEND_DEFAULT_RPATH": "ON",
"HDF_TEST_EXPRESS": "2"
}
},
Expand Down
23 changes: 10 additions & 13 deletions config/cmake/HDFMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -458,19 +458,16 @@ macro (HDF_DIR_PATHS package_prefix)
endif ()
message(STATUS "Final: ${${package_prefix}_INSTALL_DOC_DIR}")

# Define the needed INSTALL_RPATH for HDF Standard binary packages
option (HDF5_APPEND_DEFAULT_RPATH "Append to the default RPATH for the HDF installation" OFF)
if (HDF5_APPEND_DEFAULT_RPATH)
if (APPLE)
list(APPEND CMAKE_INSTALL_RPATH
"@executable_path/../${${package_prefix}_INSTALL_LIB_DIR}"
"@executable_path/"
"@loader_path/../${${package_prefix}_INSTALL_LIB_DIR}"
"@loader_path/"
)
else ()
list(APPEND CMAKE_INSTALL_RPATH "\$ORIGIN/../${${package_prefix}_INSTALL_LIB_DIR}:\$ORIGIN/")
endif ()
# Append the needed INSTALL_RPATH for HDF Standard binary packages
if (APPLE)
list(APPEND CMAKE_INSTALL_RPATH
"@executable_path/../${${package_prefix}_INSTALL_LIB_DIR}"
"@executable_path/"
"@loader_path/../${${package_prefix}_INSTALL_LIB_DIR}"
"@loader_path/"
)
else ()
list(APPEND CMAKE_INSTALL_RPATH "\$ORIGIN/../${${package_prefix}_INSTALL_LIB_DIR}:\$ORIGIN/")
endif ()

if (DEFINED ADDITIONAL_CMAKE_PREFIX_PATH AND EXISTS "${ADDITIONAL_CMAKE_PREFIX_PATH}")
Expand Down
2 changes: 0 additions & 2 deletions config/cmake/cacheinit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ set (HDF5_MINGW_STATIC_GCC_LIBS ON CACHE BOOL "Statically link libgcc/libstdc++"
set (HDF5_ALLOW_EXTERNAL_SUPPORT "TGZ" CACHE STRING "Allow External Library Building (NO GIT TGZ)" FORCE)
set_property (CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO GIT TGZ)

set (HDF5_APPEND_DEFAULT_RPATH ON "Append to the default RPATH for the HDF installation" FORCE)

########################
# compression options
########################
Expand Down
4 changes: 1 addition & 3 deletions release_docs/INSTALL_CMake.txt
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ These five steps are described in detail below.
set (HDF5_BUILD_JAVA ON CACHE BOOL "Build JAVA support" FORCE)
set (HDF5_ENABLE_ALL_WARNINGS ON CACHE BOOL "Enable all warnings" FORCE)
set (HDF5_ALLOW_EXTERNAL_SUPPORT "TGZ" CACHE STRING "Allow External Library Building (NO GIT TGZ)" FORCE)
set (HDF5_APPEND_DEFAULT_RPATH ON "Append to the default RPATH for the HDF installation" FORCE)
########################
# compression options
########################
Expand Down Expand Up @@ -755,8 +754,7 @@ BUILD_STATIC_LIBS "Build Static Libraries" ON
BUILD_STATIC_EXECS "Build Static Executables" OFF
BUILD_TESTING "Build HDF5 Unit Testing" ON
if (WINDOWS)
HDF5_DISABLE_PDB_FILES "Do not install PDB files" OFF
HDF5_APPEND_DEFAULT_RPATH "Append to the default RPATH for the HDF installation" OFF
HDF5_DISABLE_PDB_FILES "Do not install PDB files" OFF

---------------- HDF5 Build Options ----------------------------------------
HDF5_BUILD_CPP_LIB "Build HDF5 C++ Library" OFF
Expand Down
7 changes: 3 additions & 4 deletions release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,11 @@ Bug Fixes since HDF5-2.0.0 release

Configuration
-------------
- The RPATH settings were restored under an HDF5 option
- The RPATH settings were restored by appending to the CMAKE_INSTALL_RPATH

The RPATH settings were removed by a pull-request #5271, but the settings are needed
under certain conditions. The settings have been restored under the HDF5_APPEND_DEFAULT_RPATH option.
The option is OFF by default. Typical builds using either the cacheinit.cmake file or presets
will enable the RPATH settings by appending to CMAKE_INSTALL_RPATH.
under certain conditions. The settings have been restored by appending the necessary paths
and will not override and existing settings.

- Use pre-installed libaec compression library

Expand Down

0 comments on commit 4614bbb

Please sign in to comment.