[CMake] How to have Visual Studio 15 2017 actually use a 64 bit toolchain.

Michael Jackson mike.jackson at bluequartz.net
Fri Sep 21 10:44:20 EDT 2018


That will NOT use the x64 tool chain. It will use the 32 bit tool chain to produce a 64 bit binary, but NOT use the 64 bit compiler. 

Looks like there are 3 ways to do it:

https://stackoverflow.com/questions/46683300/use-64-bit-compiler-in-visual-studio

Either hack the project file or set an environment variable or use the -T host=x64" option with compiling (as Volker just mentioned).
--
Michael Jackson | Owner, President
      BlueQuartz Software
[e] mike.jackson at bluequartz.net
[w] www.bluequartz.net <http://www.bluequartz.net>

On 9/21/18, 10:41 AM, "R0b0t1" <r030t1 at gmail.com> wrote:

    You select x64 when selecting the generator. Use "Visual Studio VV
    YYYY Win64" where VV is version and YYYY is year.




More information about the CMake mailing list