문제

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