Does cmake call vcvarall.bat itself?

Always call vcvarall.bat before cmake itself is not really a nice solution.

Setting/override CMAKE_CXX_COMPILER to the x64 toolchain could work, but it
depends on the question “does cmake call vcvarall.bat internally“

Am 22.08.2016 10:36 schrieb "J Decker" <[email protected]>:

>
>
> On Mon, Aug 22, 2016 at 1:33 AM, Nils Gladitz <[email protected]>
> wrote:
>
>> On 08/22/2016 10:28 AM, J Decker wrote:
>>
>> Maybe you need a diferent parameter to vcvarsall before running cmake
>>
>> https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx
>>
>> >
>> How to: Enable a 64-Bit Visual C++ Toolset on the Command Line
>>
>>
>> To run vcvarsall.bat to use a 64-bit toolset
>>
>>    1.
>>
>>    At the command prompt, change to the Visual C++ installation
>>    directory. (The location depends on the system and the Visual Studio
>>    installation, but a typical location is C:\Program Files (x86)\Microsoft
>>    Visual Studio *version*\VC\.) For example, enter:
>>
>> To configure this Command Prompt window for 64-bit command-line builds
> that target x86 platforms, at the command prompt, enter:
> *vcvarsall amd64_x86*
>
> *shjrug* the article spells it out.
>
>>
>> The visual studio command line environments should have no effect when
>> using the visual studio generators.
>> They should only be relevant when you use one of the command line
>> generators (e.g. makefiles or ninja).
>>
>> Nils
>>
>
>
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to