Hacker News new | ask | show | jobs
by cypher543 2936 days ago
Note that the variables in the "Detecting an operating system" section are for detecting the target operating system, not the host (what CMake is running on). If you use a toolchain file to cross-compile from Linux to Windows, for example, WIN32 will be defined instead of UNIX.