From 54a9f954f44f7bb4d43c3a188cf4701731a72cbe Mon Sep 17 00:00:00 2001 From: David Minton Date: Wed, 27 Sep 2023 08:12:37 -0400 Subject: [PATCH] Added new windows cmake config files --- buildscripts/.gitignore | 3 +- .../windows/hdf5-cacheinit-windows.cmake | 43 +++++++++++++++++++ .../netcdf-fortran-cacheinit-windows.cmake} | 0 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 buildscripts/windows/hdf5-cacheinit-windows.cmake rename buildscripts/{netcdf-fortran-cacheinit.cmake => windows/netcdf-fortran-cacheinit-windows.cmake} (100%) diff --git a/buildscripts/.gitignore b/buildscripts/.gitignore index e2ee4346f..9cfaceeed 100644 --- a/buildscripts/.gitignore +++ b/buildscripts/.gitignore @@ -1 +1,2 @@ -!*.sh \ No newline at end of file +!*.sh +!windows/*.cmake \ No newline at end of file diff --git a/buildscripts/windows/hdf5-cacheinit-windows.cmake b/buildscripts/windows/hdf5-cacheinit-windows.cmake new file mode 100644 index 000000000..433ae0795 --- /dev/null +++ b/buildscripts/windows/hdf5-cacheinit-windows.cmake @@ -0,0 +1,43 @@ +# +# Copyright by The HDF Group. +# All rights reserved. +# +# This file is part of HDF5. The full HDF5 copyright notice, including +# terms governing use, modification, and redistribution, is contained in +# the COPYING file, which can be found at the root of the source code +# distribution tree, or in https://www.hdfgroup.org/licenses. +# If you do not have access to either file, you may request a copy from +# help@hdfgroup.org. +# +# This is the CMakeCache file. + +######################### +# cache entries for building as part of the Swiftest project +######################### + +set (HDF_PACKAGE_NAMESPACE "hdf5::" CACHE STRING "Name for HDF package namespace (can be empty)" FORCE) +set (HDF5_BUILD_CPP_LIB OFF CACHE BOOL "Build C++ support" FORCE) +set (HDF5_BUILD_FORTRAN OFF CACHE BOOL "Build FORTRAN support" FORCE) +set (HDF5_BUILD_JAVA OFF CACHE BOOL "Build JAVA support" FORCE) +set (HDF5_BUILD_GENERATORS OFF CACHE BOOL "Build Test Generators" FORCE) +set (BUILD_TESTING OFF CACHE BOOL "Build testing" FORCE) +set (HDF5_BUILD_EXAMPLES OFF CACHE BOOL "Build examples" FORCE) +set (HDF5_ENABLE_ALL_WARNINGS OFF CACHE BOOL "Enable all warnings" FORCE) +set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO GIT TGZ)" FORCE) +set_property (CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO GIT TGZ) +set (BUILD_SHARED_LIBS OFF CACHE BOOL "Build with shared libraries" FORCE) + +######################## +# compression options +######################## +SET(ZLIB_LIBRARY "C:/Program Files (x86)/zlib/lib/zlibstatic.lib" CACHE FILEPATH "ZLIB library file" FORCE) +SET(ZLIB_INCLUDE_DIR "C:/Program Files (x86)/zlib/include" CACHE PATH "ZLIB include directory" FORCE) +set (ZLIB_PACKAGE_NAME "zlib" CACHE STRING "Name of ZLIB package" FORCE) +set (ZLIB_USE_LOCALCONTENT OFF CACHE BOOL "Use local file for ZLIB FetchContent" FORCE) +set (LIBAEC_USE_LOCALCONTENT OFF CACHE BOOL "Use local file for LIBAEC FetchContent" FORCE) +set (ENABLE_SZIP OFF CACHE BOOL "Enable SZIP" FORCE) + +######################## +# filter plugin options +######################## +set (HDF5_ENABLE_PLUGIN_SUPPORT OFF CACHE BOOL "Enable plugins" FORCE) diff --git a/buildscripts/netcdf-fortran-cacheinit.cmake b/buildscripts/windows/netcdf-fortran-cacheinit-windows.cmake similarity index 100% rename from buildscripts/netcdf-fortran-cacheinit.cmake rename to buildscripts/windows/netcdf-fortran-cacheinit-windows.cmake