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

2018-09-21 Thread J Decker
On Fri, Sep 21, 2018 at 1:32 PM Michael Jackson wrote: > Nope. That just tells what _version_ of the compiler suite to use, but not > the architecture. > Oh right, I understand now. -- The C compiler identification is MSVC 19.0.24215.1 -- The CXX compiler identification is MSVC 19.0.24215.1 --

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

2018-09-21 Thread Michael Jackson
Nope. That just tells what _version_ of the compiler suite to use, but not the architecture. -- The C compiler identification is MSVC 19.0.24234.1 -- The CXX compiler identification is MSVC 19.0.24234.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio

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

2018-09-21 Thread J Decker
"C:/tools/unix/cmake/bin/cmake.exe" -G "Visual Studio 15 2016 Win64" -T "v140" .. C:\tools\unix\cmake\bin\cmake.exe --build . --config "Debug" --target "INSTALL" On Fri, Sep 21, 2018 at 8:26 AM Michael Jackson wrote: > So I tried using "-DCMAKE_GENERATOR_TOOLSET=x64" while configuring a clean >

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

2018-09-21 Thread Michael Jackson
So I tried using "-DCMAKE_GENERATOR_TOOLSET=x64" while configuring a clean build directory but it still picked up the x86 compiler. I ended up going into the "Settings" of Windows 10 and added the environment variable PreferredToolArchitecture=x64 to my account. Logged out, Logged back in and

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

2018-09-21 Thread Michael Jackson
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

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

2018-09-21 Thread Volker Enderlein
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

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

2018-09-21 Thread R0b0t1
On Fri, Sep 21, 2018 at 4:13 PM, Michael Jackson 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

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

2018-09-21 Thread Mateusz Loskot
On Fri, 21 Sep 2018 at 16:13, Michael Jackson wrote: > > For those that want to actually use Visual Studio 15 2017 is there anything > in CMake or an environment variable that can be set? Isn't host=x64 for that purpose? https://cmake.org/cmake/help/v3.12/variable/CMAKE_GENERATOR_TOOLSET.html

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

2018-09-21 Thread 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