diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-10-23 16:00:36 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-10-23 16:00:36 (GMT) |
commit | b6e61e8310a1e0a14de6f427b853716d447af373 (patch) | |
tree | a3027959709ea591619ca067776c64f02a563c06 /config/toolchain | |
parent | ea2a969ce2a3a7dea80fcb2e5798da9307f04937 (diff) | |
download | hdf5-b6e61e8310a1e0a14de6f427b853716d447af373.zip hdf5-b6e61e8310a1e0a14de6f427b853716d447af373.tar.gz hdf5-b6e61e8310a1e0a14de6f427b853716d447af373.tar.bz2 |
Merge CMake changes from develop
Improved cross-compiling and toolchains
Diffstat (limited to 'config/toolchain')
-rw-r--r-- | config/toolchain/GCC.cmake | 10 | ||||
-rw-r--r-- | config/toolchain/intel.cmake | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/config/toolchain/GCC.cmake b/config/toolchain/GCC.cmake new file mode 100644 index 0000000..ddb1641 --- /dev/null +++ b/config/toolchain/GCC.cmake @@ -0,0 +1,10 @@ +# Uncomment the following to use cross-compiling +#set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_COMPILER_VENDOR "GCC") + +set(CMAKE_C_COMPILER cc) +set(CMAKE_CXX_COMPILER c++) +set(CMAKE_Fortran_COMPILER gfortran) + +# the following is used if cross-compiling +set(CMAKE_CROSSCOMPILING_EMULATOR "") diff --git a/config/toolchain/intel.cmake b/config/toolchain/intel.cmake new file mode 100644 index 0000000..f1a5734 --- /dev/null +++ b/config/toolchain/intel.cmake @@ -0,0 +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) + +# the following is used if cross-compiling +set(CMAKE_CROSSCOMPILING_EMULATOR "") |