summaryrefslogtreecommitdiffstats
path: root/config/cmake/cacheinit.cmake
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-04-20 11:55:05 (GMT)
committerGitHub <noreply@github.com>2021-04-20 11:55:05 (GMT)
commitfc5c567fdce94765c9db904295ca8879a8e91752 (patch)
tree91879906198b94a23324ed9fc6d989c981bfacda /config/cmake/cacheinit.cmake
parentd3384b2e8e5fafd9f3aa90e738ca18d5ddeeb3c1 (diff)
downloadhdf5-fc5c567fdce94765c9db904295ca8879a8e91752.zip
hdf5-fc5c567fdce94765c9db904295ca8879a8e91752.tar.gz
hdf5-fc5c567fdce94765c9db904295ca8879a8e91752.tar.bz2
CMake no longer builds the C++ library by default (#555)
* Committing clang-format changes * CMake no longer builds C++ library by default Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'config/cmake/cacheinit.cmake')
-rw-r--r--config/cmake/cacheinit.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/cmake/cacheinit.cmake b/config/cmake/cacheinit.cmake
index fc85277..e423deb 100644
--- a/config/cmake/cacheinit.cmake
+++ b/config/cmake/cacheinit.cmake
@@ -21,6 +21,8 @@ set (HDF_PACKAGE_EXT "" CACHE STRING "Name of HDF package extension" FORCE)
set (HDF_PACKAGE_NAMESPACE "hdf5::" CACHE STRING "Name for HDF package namespace (can be empty)" FORCE)
+set (HDF5_BUILD_CPP_LIB ON CACHE BOOL "Build C++ support" FORCE)
+
set (HDF5_BUILD_FORTRAN ON CACHE BOOL "Build FORTRAN support" FORCE)
set (HDF5_INSTALL_MOD_FORTRAN "NO" CACHE STRING "Copy FORTRAN mod files to include directory (NO SHARED STATIC)" FORCE)