diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-01-29 18:55:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-01-29 18:55:20 (GMT) |
commit | c382cdc13679d5350b93f61d94cbcf819a857f4d (patch) | |
tree | f66e365f5f7170a3c157c1855cba039f7f10033e /config/cmake/scripts/HDF5options.cmake | |
parent | 9e311657771d7aaa59bf941d6d6494369f4181ff (diff) | |
download | hdf5-c382cdc13679d5350b93f61d94cbcf819a857f4d.zip hdf5-c382cdc13679d5350b93f61d94cbcf819a857f4d.tar.gz hdf5-c382cdc13679d5350b93f61d94cbcf819a857f4d.tar.bz2 |
Update CMake usage
Diffstat (limited to 'config/cmake/scripts/HDF5options.cmake')
-rw-r--r-- | config/cmake/scripts/HDF5options.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/cmake/scripts/HDF5options.cmake b/config/cmake/scripts/HDF5options.cmake index b090434..23477ff 100644 --- a/config/cmake/scripts/HDF5options.cmake +++ b/config/cmake/scripts/HDF5options.cmake @@ -21,6 +21,26 @@ #set(CMAKE_GENERATOR_TOOLSET "Intel C++ Compiler 17.0") ############################################################################################# +#### Only build static libraries #### +#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF") +#### Add PICC option on linux/mac #### +#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_ANSI_CFLAGS:STRING=-fPIC") + +############################################################################################# +#### fortran enabled #### +#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=ON") + ### enable Fortran 2003 depends on HDF5_BUILD_FORTRAN +#set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_F2003:BOOL=ON") +#### fortran disabled #### +set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF") + ### enable Fortran 2003 depends on HDF5_BUILD_FORTRAN +set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_F2003:BOOL=OFF") + +############################################################################################# +### change install prefix (default use INSTALLDIR value) +set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALLDIR}") + +############################################################################################# #### ext libraries #### ### ext libs from tgz |