... | ... | @@ -49,27 +49,15 @@ up" only for the purpose of explanation. |
|
|
|
|
|
**Get the hostname of current machine**
|
|
|
|
|
|
find_program(HOSTNAME_CMD NAMES hostname)
|
|
|
exec_program(${HOSTNAME_CMD} ARGS OUTPUT_VARIABLE HOSTNAME)
|
|
|
cmake_host_system_information(RESULT HOSTNAME QUERY HOSTNAME)
|
|
|
set(CTEST_SITE "${HOSTNAME}")
|
|
|
|
|
|
Finds the paths to the program hostname, executes it, stores the result
|
|
|
in ${HOSTNAME}. Then the *CTEST_SITE* variable is set, to be used in
|
|
|
Stores the machine's hostname in `${HOSTNAME}`. Then the *CTEST_SITE* variable is set, to be used in
|
|
|
CDash.
|
|
|
|
|
|
**Get the system information of current machine**
|
|
|
|
|
|
find_program(UNAME NAMES uname)
|
|
|
macro(getuname name flag)
|
|
|
exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
|
|
|
endmacro(getuname)
|
|
|
|
|
|
Defines the macro getuname, for easy usage of *uname*
|
|
|
|
|
|
getuname(osname -s)
|
|
|
getuname(osrel -r)
|
|
|
getuname(cpu -m)
|
|
|
set(CTEST_BUILD_NAME "${osname}-${cpu}-prod")
|
|
|
set(CTEST_BUILD_NAME "${CMAKE_HOST_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}-prod")
|
|
|
|
|
|
Sets the build name, to be used in CDash.
|
|
|
|
... | ... | |