CMake/Tests/RunCMake/GeneratorToolset
Brad King 528e8af19f Allow a toolchain file to specify a generator toolset
Delay use of CMAKE_GENERATOR_TOOLSET until the CMakeSystem.cmake
file has been configured and loaded during the first project() or
enable_language() command.  This gives the toolchain file named by
CMAKE_TOOLCHAIN_FILE a chance to set CMAKE_GENERATOR_TOOLSET.  This
point is still early enough to set the generator toolset prior to
the initialization of any languages that might use the toolset.

The cmake::GeneratorToolset member variable remains an indication
of what was specified by the -T option or loaded from the cache.
It does not need to be updated based on the toolchain file setting.
The cmMakefile::TryCompile can still pass cmake::GeneratorToolset
into the inner instance because the try-compiled project will do
platform and language initialization using the CMakeSystem module
configured for the outer project.

Extend the RunCMake.GeneratorToolset test with cases that use a
toolchain file to set CMAKE_GENERATOR_TOOLSET.
2014-06-04 14:27:02 -04:00
..
BadToolset-result.txt CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
BadToolset-stderr.txt Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
BadToolset-toolchain.cmake Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
BadToolset.cmake CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
BadToolsetToolchain-result.txt Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
BadToolsetToolchain-stderr.txt Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
BadToolsetToolchain.cmake Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
CMakeLists.txt Cygwin: Avoid legacy warnings in RunCMake.* tests 2013-08-13 09:50:15 -04:00
NoToolset-result.txt CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
NoToolset-stderr.txt CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
NoToolset.cmake CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
RunCMakeTest.cmake Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
TestToolset-result.txt VS: Implement generator toolset selection (#10722, #13774) 2013-02-07 11:06:28 -05:00
TestToolset-stderr.txt VS: Implement generator toolset selection (#10722, #13774) 2013-02-07 11:06:28 -05:00
TestToolset-toolchain.cmake Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
TestToolset.cmake VS: Implement generator toolset selection (#10722, #13774) 2013-02-07 11:06:28 -05:00
TestToolsetToolchain-result.txt Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
TestToolsetToolchain-stderr.txt Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
TestToolsetToolchain.cmake Allow a toolchain file to specify a generator toolset 2014-06-04 14:27:02 -04:00
TwoToolsets-result.txt CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
TwoToolsets-stderr.txt CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00
TwoToolsets.cmake CMake: Add -T option to choose a generator toolset 2013-02-07 10:53:19 -05:00