[CMake] Wrong version of cl.exe for x64
Nils Gladitz
nilsgladitz at gmail.com
Mon Aug 22 06:54:20 EDT 2016
On 08/22/2016 12:18 PM, Albrecht Schlosser wrote:
> On 22.08.2016 10:33 Nils Gladitz wrote:
>
>> The visual studio command line environments should have no effect when
>> using the visual studio generators.
>
> Are you sure? Or what does "should" mean here? ;-)
Yes. The Visual Studio generators are meant to work outside of the
visual studio command line environments while the command line
generators (makefiles, ninja) are meant to work from within the visual
studio command line environment.
What that means is that the Visual Studio generators must work without it.
You can of course create manual dependencies from your project e.g. when
you manually run "cl" from a custom command but such use should
obviously be avoided since it is non-obvious and there is nothing that
prevents you from running e.g. the x86 environment while your visual
studio solution (which will ignore that environment) is targeting amd64.
Nils
More information about the CMake
mailing list