[CMake] [Visual Studio] Is it possible to specify a different target architecture?
Greg Marr
greg.marr at autodesk.com
Tue Jun 28 10:00:00 EDT 2016
From: CMake <cmake-bounces at cmake.org<mailto:cmake-bounces at cmake.org>> on behalf of Adam Rankin <arankin at robarts.ca<mailto:arankin at robarts.ca>>
Date: Tuesday, June 28, 2016 at 9:51 AM
To: "cmake at cmake.org<mailto:cmake at cmake.org>" <cmake at cmake.org<mailto:cmake at cmake.org>>
Subject: [CMake] [Visual Studio] Is it possible to specify a different target architecture?
Hello all,
I am wondering if there exist CMake commands/variables to specify for Visual Studio to have the project file(s) generated target a different architecture than the one associated with that version of Visual Studio.
For example, I develop in VS2015, but would like to target the VS2012 redistributable (v110).
Add the command line parameter `-T v110`
https://cmake.org/cmake/help/v3.0/manual/cmake.1.html
-T <toolset-name>
Specify toolset name if supported by generator.
Some CMake generators support a toolset name to be given to the native build system to choose a compiler. This is supported only on specific generators:
Visual Studio >= 10
Xcode >= 3.0
See native build system documentation for allowed toolset names.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160628/902007a6/attachment.html>
More information about the CMake
mailing list