[CMake] Building a Windows project in both 32- and 64-bit mode using the nmake generator.

Nils Gladitz nilsgladitz at gmail.com
Thu May 1 09:38:40 EDT 2014


On 01.05.2014 15:13, Rick McGuire wrote:
> "clean build" referred to our existing system, not the cmake 
> conversion.  For our current system, it is only necssary to nuke the 
> build output directory.  Figuring out the mechanics of doing a 
> switching mode under cmake is something we'll deal with  once we're 
> able to get the different kinds of build working.

So this was with a fresh (empty; specifically no 
CMakeCache.txt/CMakeFiles) build directory?
The machine type is determined (and cached) the first time cmake runs 
for a build directory.
It is determined by querying the compiler from within the environment in 
which it runs.

If this was with a clean build directory is it possible the project sets 
up custom compiler flags that would override the existing flags?

If that isn't the case either could you provide a minimal, 
self-contained test case that reproduces the issue?

Nils


More information about the CMake mailing list