| 1 |
# Set policy here instead of including TribitCTestPolicis.cmake since we want |
| 2 |
# this to be a standalone module |
| 3 |
cmake_policy(SET CMP0007 NEW) |
| 4 |
|
| 5 |
|
| 6 |
# @FUNCTION: tribits_read_ctest_tag_file() |
| 7 |
# |
| 8 |
# Read in the <build>/Testing/TAG file contents |
| 9 |
# |
| 10 |
# Usage:: |
| 11 |
# |
| 12 |
# tribits_read_ctest_tag_file( <tagFileIn> |
| 13 |
# <buildStartTimeOut> <cdashGroupOut> <cdashModelOut> ) |
| 14 |
# |
| 15 |
function(tribits_read_ctest_tag_file tagFileIn |
| 16 |
buildStartTimeOut cdashGroupOut cdashModelOut |
| 17 |
) |
| 18 |
file(READ "${tagFileIn}" tagFileStr) |
| 19 |
string(REPLACE "\n" ";" tagFileStrList "${tagFileStr}") |
| 20 |
list(GET tagFileStrList 0 buildStartTime) |
| 21 |
list(GET tagFileStrList 1 cdashGroup) |
| 22 |
list(GET tagFileStrList 2 cdashModel) |
| 23 |
set(${buildStartTimeOut} "${buildStartTime}" PARENT_SCOPE) |
| 24 |
set(${cdashGroupOut} "${cdashGroup}" PARENT_SCOPE) |
| 25 |
set(${cdashModelOut} "${cdashModel}" PARENT_SCOPE) |
| 26 |
endfunction() |