summaryrefslogtreecommitdiffstats
path: root/config/cmake/CTestScript.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-05-30 16:16:11 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-05-30 16:16:11 (GMT)
commit86de942cf51c832dfda4ed47ca081138c091cb39 (patch)
tree580f0650ef40e57f4dbb535933663e900bc86a27 /config/cmake/CTestScript.cmake
parent56d23f00a7fbceea7ab7217eaeadc791c61b01e2 (diff)
downloadhdf5-86de942cf51c832dfda4ed47ca081138c091cb39.zip
hdf5-86de942cf51c832dfda4ed47ca081138c091cb39.tar.gz
hdf5-86de942cf51c832dfda4ed47ca081138c091cb39.tar.bz2
Added toolset and intel checks
Diffstat (limited to 'config/cmake/CTestScript.cmake')
-rwxr-xr-xconfig/cmake/CTestScript.cmake6
1 files changed, 5 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}\""
)
#-----------------------------------------------------------------------------