[CMake] Visual Studio: build a 32 bit application under windows 64 bits

Rolf Eike Beer eike at sf-mail.de
Fri Nov 4 08:43:05 EDT 2011


> No, that's not what I am looking for.
> Inside the CMakeLists.txt, I want to tell to the visual studio C compiler
> to compile an executable into 32 bit applications.
> The cmake exe has been launched into the 64 bit visual console.

You are looking for that, you just didn't realize ;)

Build that subdirectory not using add_subdirectory(), but using
externalproject_add() and use the -G switch in the command line there.

Eike


More information about the CMake mailing list