On 12/2/2015 8:22 PM, iosif neitzke wrote:
Isn't this what Generator Toolset selection is for?
ex. cmake -G Ninja -T v140
http://cmake.blogspot.com/2013/05/cmake-2811-available-for-download.html
No, that is for telling the VS IDE which tool set to use. It has no
effect on the Ninja generator. Like makefiles the ninja generator
assumes it is running in an environment that is setup to run a compiler
from the command line. If there is more than one compiler it picks one.
If you have more than one compiler you can force it to pick one over
the other with CC and CXX variables. The IDE has its own environment
for the compiler and some IDEs support more than one tool chain and the
-T is how you tell it to use something other than its default.
-Bill
--
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