diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-11 22:48:55 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:20 (GMT) |
commit | 371439c6bd11a3c5444e45937182af5386353a57 (patch) | |
tree | e2b4b977445deedb0cbdd02a240afdd41b7d29d7 /config/cmake/scripts/CTestScript.cmake | |
parent | 958ba4c8a269329f1d5771864af33a5ca3ac36c4 (diff) | |
download | hdf5-371439c6bd11a3c5444e45937182af5386353a57.zip hdf5-371439c6bd11a3c5444e45937182af5386353a57.tar.gz hdf5-371439c6bd11a3c5444e45937182af5386353a57.tar.bz2 |
TRILABS-135 Add clang analyzers
Diffstat (limited to 'config/cmake/scripts/CTestScript.cmake')
-rw-r--r-- | config/cmake/scripts/CTestScript.cmake | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/config/cmake/scripts/CTestScript.cmake b/config/cmake/scripts/CTestScript.cmake index 8425312..3c85d48 100644 --- a/config/cmake/scripts/CTestScript.cmake +++ b/config/cmake/scripts/CTestScript.cmake @@ -50,6 +50,17 @@ if (SITE_BUILDNAME_SUFFIX) endif () set (BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILDNAME:STRING=${CTEST_BUILD_NAME}") +# Launchers work only with Makefile and Ninja generators. +if(NOT "${CTEST_CMAKE_GENERATOR}" MATCHES "Make|Ninja") + set(CTEST_USE_LAUNCHERS 0) + set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 0) + set(BUILD_OPTIONS "${BUILD_OPTIONS} -DCTEST_USE_LAUNCHERS:BOOL=OFF") +else() + set(CTEST_USE_LAUNCHERS 1) + set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 1) + set(BUILD_OPTIONS "${BUILD_OPTIONS} -DCTEST_USE_LAUNCHERS:BOOL=ON") +endif() + #----------------------------------------------------------------------------- # MAC machines need special option #----------------------------------------------------------------------------- @@ -219,9 +230,6 @@ else () ) endif () -set(CTEST_USE_LAUNCHERS 1) -set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 1) - #----------------------------------------------------------------------------- ## -- set output to english set ($ENV{LC_MESSAGES} "en_EN") |