forked from hpc4cmb/toast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CTestConfig.cmake
36 lines (34 loc) · 1.49 KB
/
CTestConfig.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#=============================================================================
# CMake - Cross Platform Makefile Generator
# Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# if CTEST_SITE was not provided
if(NOT DEFINED CTEST_SITE)
# [A] if CTEST_SITE set at configure
set(_HOSTNAME "@CTEST_SITE@")
# [B] if CTEST_SITE not set at configure, grab the HOSTNAME
if("${_HOSTNAME}" STREQUAL "")
execute_process(COMMAND uname -n
OUTPUT_VARIABLE _HOSTNAME
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif("${_HOSTNAME}" STREQUAL "")
# either [A] or [B]
set(CTEST_SITE "${_HOSTNAME}")
unset(_HOSTNAME)
endif(NOT DEFINED CTEST_SITE)
set(CTEST_PROJECT_NAME "TOAST")
set(CTEST_NIGHTLY_START_TIME "00:00:00 PDT")
set(CTEST_DROP_METHOD "http")
#set(CTEST_DROP_SITE "jonathan-madsen.info")
#set(CTEST_DROP_LOCATION "/cdash/public/submit.php?project=TOAST")
set(CTEST_DROP_SITE_CDASH TRUE)
set(CTEST_CDASH_VERSION "1.6")
set(CTEST_CDASH_QUERY_VERSION TRUE)