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,

有帮助吗?

解决方案

The CMake site_name() function should give you what you want. To get info on it do "cmake --help-command SITE_NAME".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top