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

R0b0t1 r030t1 at gmail.com
Fri Sep 21 10:41:20 EDT 2018


On Fri, Sep 21, 2018 at 4:13 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> 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?
>

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

>
> Thanks
>
> --
>
> Michael Jackson | Owner, President
>
>       BlueQuartz Software
>
> [e] mike.jackson at bluequartz.net
>
> [w] www.bluequartz.net
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list