diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-11 22:48:55 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-12-11 22:49:34 (GMT) |
commit | 74524c5a351d730e1b01c4ac4ed29ae71cab6b56 (patch) | |
tree | ccf16a0b261c06265c6ab89738927425c53da41c /config/cmake | |
parent | 8026c67a1c34e9d3dcaffe12f22d00e4ced64878 (diff) | |
download | hdf5-74524c5a351d730e1b01c4ac4ed29ae71cab6b56.zip hdf5-74524c5a351d730e1b01c4ac4ed29ae71cab6b56.tar.gz hdf5-74524c5a351d730e1b01c4ac4ed29ae71cab6b56.tar.bz2 |
TRILABS-135 Add clang analyzers
Diffstat (limited to 'config/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") |