[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:09:32 EDT 2014


On 01.05.2014 15:04, Rick McGuire wrote:
>
> With our existing setup, to switch between 32- and 64- bit builds, we 
> only need to change the option specified on the vcvarsall batch file 
> and do a clean build.  The tools figure out from the environment 
> variables which build we're doing any everything works great.
>

Does the "clean build" involve removing the build directory or at least 
removing CMakeCache.txt/CMakeFiles?
Otherwise CMake will keep using the cached compiler information from the 
initial configuration rather than querying the build environment again.

Nils


More information about the CMake mailing list