[CMake] WIN32 vs CMAKE_HOST_WIN32

Eric Noulard eric.noulard at gmail.com
Mon Mar 26 17:44:12 EDT 2012


2012/3/26 Robert Dailey <rcdailey.lists at gmail.com>:
> Ever since I started using CMake, I always assumed that the WIN32 variable
> represented what system CMake is currently running on. Looking more
> carefully at the documentation, however, it seems this describes what system
> CMake is generating for. Could someone explain this a bit better? What would
> be an example of when WIN32 would be true but I'm not actually on Windows?

When you cross-compile Windows binaries on a Linux host.
see:
http://www.cmake.org/Wiki/CMake_Cross_Compiling
http://www.cmake.org/Wiki/CmakeMingw


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list