The CMake site_name() function should give you what you want. To get info on it do "cmake --help-command SITE_NAME".
How to get the hostname with CMake or CTest
Question
is it possible to easily get the hostname on which the CMake configuration is launched ?
If it is not possible, how can I get the hostname on which CTest is launched ?
I am using CMake and CTest under Windows and Linux.
Thanks,
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow