diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-10-04 16:40:33 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-10-04 16:40:33 (GMT) |
commit | 2a95ab5acbe032f58891b653f56b9db8a4938d95 (patch) | |
tree | fa8b2911bafa42e15e0d40e59d6cddf9f509e701 | |
parent | 284cb8ffc06e39d16fe0e436beff7587be54ed50 (diff) | |
download | hdf5-2a95ab5acbe032f58891b653f56b9db8a4938d95.zip hdf5-2a95ab5acbe032f58891b653f56b9db8a4938d95.tar.gz hdf5-2a95ab5acbe032f58891b653f56b9db8a4938d95.tar.bz2 |
TRILABS-21 add toolchain related info and files
-rwxr-xr-x | config/cmake/scripts/HDF5options.cmake | 5 | ||||
-rw-r--r-- | config/intel.cmake | 6 | ||||
-rw-r--r-- | release_docs/INSTALL_CMake.txt | 28 |
3 files changed, 37 insertions, 2 deletions
diff --git a/config/cmake/scripts/HDF5options.cmake b/config/cmake/scripts/HDF5options.cmake index 3e6aad0..80a28d3 100755 --- a/config/cmake/scripts/HDF5options.cmake +++ b/config/cmake/scripts/HDF5options.cmake @@ -96,3 +96,8 @@ set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ALLOW_EXTERNAL_SUPPORT:STRING set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_PACKAGE_EXTLIBS:BOOL=ON") ############################################################################################# +### use a toolchain file + +#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=config/intel.cmake") + +############################################################################################# diff --git a/config/intel.cmake b/config/intel.cmake index ee16a0f..5ef9282 100644 --- a/config/intel.cmake +++ b/config/intel.cmake @@ -1,8 +1,10 @@ +# Uncomment the following to use cross-compiling #set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_COMPILER_VENDOR "intel") set(CMAKE_C_COMPILER icc) set(CMAKE_CXX_COMPILER icpc) set(CMAKE_Fortran_COMPILER ifort) - -set(PRESET_PRINTF_LL "ll") + +# the following is used if cross-compiling +set(PRESET_PRINTF_LL "l") diff --git a/release_docs/INSTALL_CMake.txt b/release_docs/INSTALL_CMake.txt index 7352dae..edd876a 100644 --- a/release_docs/INSTALL_CMake.txt +++ b/release_docs/INSTALL_CMake.txt @@ -324,6 +324,34 @@ IV. Further considerations -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING=Release .. + 6. CMake uses a toolchain of utilities to compile, link libraries and + create archives, and other tasks to drive the build. The toolchain + utilities available are determined by the languages enabled. In normal + builds, CMake automatically determines the toolchain for host builds + based on system introspection and defaults. In cross-compiling + scenarios, a toolchain file may be specified with information about + compiler and utility paths. + Variables and Properties + Several variables relate to the language components of a toolchain which + are enabled. CMAKE_<LANG>_COMPILER is the full path to the compiler used + for <LANG>. CMAKE_<LANG>_COMPILER_ID is the identifier used by CMake for + the compiler and CMAKE_<LANG>_COMPILER_VERSION is the version of the compiler. + + The CMAKE_<LANG>_FLAGS variables and the configuration-specific equivalents + contain flags that will be added to the compile command when compiling a + file of a particular language. + + As the linker is invoked by the compiler driver, CMake needs a way to + determine which compiler to use to invoke the linker. This is calculated + by the LANGUAGE of source files in the target, and in the case of static + libraries, the language of the dependent libraries. The choice CMake makes + may be overridden with the LINKER_LANGUAGE target property. + + See the CMake help for more information on using toolchain files. + + To use a toolchain file with the supplied cmake scripts, see the + HDF5options.cmake file under the toolchain section. + Notes: CMake and HDF5 1. Using CMake for building and using HDF5 is under active development. |