[CMake] How to have Visual Studio 15 2017 actually use a 64 bit toolchain.
Volker Enderlein
volker.enderlein at ifm-chemnitz.de
Fri Sep 21 10:27:22 EDT 2018
Hi Michael,
I use the CMake generator toolset option "-T host=x64" when generating
the solutions to force the 64 bit compiler being used.
Cheers, Volker
Am 21.09.2018 um 16:13 schrieb Michael Jackson:
>
> The easy answer is to use “ninja” from a VS tools X64 Native command
> prompt. For those that want to actually use Visual Studio 15 2017 is
> there anything in CMake or an environment variable that can be set?
>
>
> The issue is that when I configure I select “Visual Studio 15 2017
> Win64” BUT the actual tool chain that VS is using under the hood is a
> 32 bit compiler. I have verified this through stack overflow and
> looking at the task manager.
>
> https://stackoverflow.com/questions/46056263/use-the-64-bit-visual-c-toolset-in-visual-studio-2017
>
> https://stackoverflow.com/questions/19820718/how-to-make-visual-studio-use-the-native-amd64-toolchain/25626630#25626630
>
> Is there a CMake variable that I can set to tell Visual Studio to use
> the X64 toolchain?
>
>
> Thanks
>
> --
>
> Michael Jackson | Owner, President
>
> BlueQuartz Software
>
> [e] mike.jackson at bluequartz.net <mailto:mike.jackson at bluequartz.net>
>
> [w] www.bluequartz.net <http://www.bluequartz.net>
>
>
--
More information about the CMake
mailing list