| 1 |
# |
| 2 |
# Copyright by The HDF Group. |
| 3 |
# All rights reserved. |
| 4 |
# |
| 5 |
# This file is part of HDF5. The full HDF5 copyright notice, including |
| 6 |
# terms governing use, modification, and redistribution, is contained in |
| 7 |
# the COPYING file, which can be found at the root of the source code |
| 8 |
# distribution tree, or in https://www.hdfgroup.org/licenses. |
| 9 |
# If you do not have access to either file, you may request a copy from |
| 10 |
# [email protected]. |
| 11 |
# |
| 12 |
############################################################################################# |
| 13 |
#### Change default configuration of options in config/cmake/cacheinit.cmake file ### |
| 14 |
#### format: set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DXXX:YY=ZZZZ") ### |
| 15 |
#### DEFAULT: ### |
| 16 |
#### BUILD_SHARED_LIBS:BOOL=OFF ### |
| 17 |
#### HDF_BUILD_C:BOOL=ON ### |
| 18 |
#### HDF_BUILD_CXX:BOOL=OFF ### |
| 19 |
#### HDF_BUILD_FORTRAN:BOOL=OFF ### |
| 20 |
#### HDF_BUILD_JAVA:BOOL=OFF ### |
| 21 |
#### HDF_BUILD_FILTERS:BOOL=OFF ### |
| 22 |
#### BUILD_TESTING:BOOL=OFF ### |
| 23 |
#### HDF_ENABLE_PARALLEL:BOOL=OFF ### |
| 24 |
#### HDF_ENABLE_THREADSAFE:BOOL=OFF ### |
| 25 |
############################################################################################# |
| 26 |
|
| 27 |
### uncomment/comment and change the following lines for other configuration options |
| 28 |
### build with shared libraries |
| 29 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=ON") |
| 30 |
|
| 31 |
############################################################################################# |
| 32 |
#### languages #### |
| 33 |
### disable C builds |
| 34 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_C:BOOL=OFF") |
| 35 |
|
| 36 |
### enable C++ builds |
| 37 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_CXX:BOOL=ON") |
| 38 |
|
| 39 |
### enable Fortran builds |
| 40 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=ON") |
| 41 |
|
| 42 |
### enable JAVA builds |
| 43 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_JAVA:BOOL=ON") |
| 44 |
|
| 45 |
############################################################################################# |
| 46 |
### enable FILTERS builds |
| 47 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_FILTERS:BOOL=ON") |
| 48 |
### default HDF5_PLUGIN_PATH to where the filter libraries are located |
| 49 |
#set(ENV{HDF5_PLUGIN_PATH} "${INSTALLDIR}/lib/plugin") |
| 50 |
|
| 51 |
############################################################################################# |
| 52 |
### enable parallel program builds |
| 53 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_ENABLE_PARALLEL:BOOL=ON") |
| 54 |
|
| 55 |
|
| 56 |
############################################################################################# |
| 57 |
### enable threadsafe program builds |
| 58 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_ENABLE_THREADSAFE:BOOL=ON") |
| 59 |
|
| 60 |
|
| 61 |
############################################################################################# |
| 62 |
### enable test program builds, requires reference files in testfiles subdirectory |
| 63 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_TESTING:BOOL=ON") |
| 64 |
#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCOMPARE_TESTING:BOOL=ON") |
| 65 |
|
| 66 |
############################################################################################# |