diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-09-25 21:43:57 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-09-25 21:43:57 (GMT) |
commit | ff0881f35ba3de1077b168dd5383e487081a23bb (patch) | |
tree | 4960ddb7db6ee0297f5f5371af3b0ee6315f42a4 /config/cmake_ext_mod/HDFMacros.cmake | |
parent | aa08db839e6aea89487be985704d57a0e424b21b (diff) | |
download | hdf5-ff0881f35ba3de1077b168dd5383e487081a23bb.zip hdf5-ff0881f35ba3de1077b168dd5383e487081a23bb.tar.gz hdf5-ff0881f35ba3de1077b168dd5383e487081a23bb.tar.bz2 |
OESS-98 merge with clang-format changes
Diffstat (limited to 'config/cmake_ext_mod/HDFMacros.cmake')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake index 5740740..eb0392e 100644 --- a/config/cmake_ext_mod/HDFMacros.cmake +++ b/config/cmake_ext_mod/HDFMacros.cmake @@ -427,6 +427,19 @@ macro (HDF_DIR_PATHS package_prefix) set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) endif () endif () + +#----------------------------------------------------------------------------- +# Setup pre-3.14 FetchContent +#----------------------------------------------------------------------------- + if(${CMAKE_VERSION} VERSION_LESS 3.14) + macro(FetchContent_MakeAvailable NAME) + FetchContent_GetProperties(${NAME}) + if(NOT ${NAME}_POPULATED) + FetchContent_Populate(${NAME}) + add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR}) + endif() + endmacro() + endif() endmacro () macro (ADD_H5_FLAGS h5_flag_var infile) |