diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-05-30 16:16:11 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-05-30 16:16:11 (GMT) |
commit | 86de942cf51c832dfda4ed47ca081138c091cb39 (patch) | |
tree | 580f0650ef40e57f4dbb535933663e900bc86a27 /config/cmake | |
parent | 56d23f00a7fbceea7ab7217eaeadc791c61b01e2 (diff) | |
download | hdf5-86de942cf51c832dfda4ed47ca081138c091cb39.zip hdf5-86de942cf51c832dfda4ed47ca081138c091cb39.tar.gz hdf5-86de942cf51c832dfda4ed47ca081138c091cb39.tar.bz2 |
Added toolset and intel checks
Diffstat (limited to 'config/cmake')
-rwxr-xr-x | config/cmake/CTestScript.cmake | 6 | ||||
-rw-r--r-- | config/cmake/HDF5_Examples.cmake.in | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/config/cmake/CTestScript.cmake b/config/cmake/CTestScript.cmake index a3779d6..c59b10c 100755 --- a/config/cmake/CTestScript.cmake +++ b/config/cmake/CTestScript.cmake @@ -117,8 +117,12 @@ endif () #----------------------------------------------------------------------------- # Initialize the CTEST commands #------------------------------ +set(CTEST_CONFIGURE_TOOLSET "") +if(CMAKE_GENERATOR_TOOLSET) + set(CTEST_CONFIGURE_TOOLSET "-T${CMAKE_GENERATOR_TOOLSET}") +endif() set (CTEST_CONFIGURE_COMMAND - "${CTEST_CMAKE_COMMAND} -C \"${CTEST_SOURCE_DIRECTORY}/config/cmake/cacheinit.cmake\" -DCMAKE_BUILD_TYPE:STRING=${CTEST_CONFIGURATION_TYPE} ${BUILD_OPTIONS} \"-G${CTEST_CMAKE_GENERATOR}\" \"${CTEST_SOURCE_DIRECTORY}\"" + "${CTEST_CMAKE_COMMAND} -C \"${CTEST_SOURCE_DIRECTORY}/config/cmake/cacheinit.cmake\" -DCMAKE_BUILD_TYPE:STRING=${CTEST_CONFIGURATION_TYPE} ${BUILD_OPTIONS} \"-G${CTEST_CMAKE_GENERATOR}\" \"${CTEST_CONFIGURE_TOOLSET}\" \"${CTEST_SOURCE_DIRECTORY}\"" ) #----------------------------------------------------------------------------- diff --git a/config/cmake/HDF5_Examples.cmake.in b/config/cmake/HDF5_Examples.cmake.in index 6918bb3..0f53aa1 100644 --- a/config/cmake/HDF5_Examples.cmake.in +++ b/config/cmake/HDF5_Examples.cmake.in @@ -17,6 +17,9 @@ cmake_minimum_required(VERSION 3.2.2 FATAL_ERROR) ############################################################################################################### set (CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@") +if () + set (CMAKE_GENERATOR_TOOLSET "@GENERATOR_TOOLSET@" +endif () set (CTEST_DASHBOARD_ROOT ${CTEST_SCRIPT_DIRECTORY}) # handle input parameters to script. |