Tasking: Unclear documentation for how to use Tasking Toolset
cmake version 3.25.0-rc3
It's not 100% clear for me as a user what variables need to be set to use the Tasking Toolsets.
Is it possible to use the generic CMAKE_GENERATOR_TOOLSET (or cmake -T
option) instead of defining CMAKE_TASKING_TOOLSET inside a toolchain file? One of the main benefits of having built-in support for the Tasking Toolset is that we should no longer need to maintain our own toolchain files.
Projects that can be built with different architectures and/or toolsets must take CMAKE_TASKING_TOOLSET and CMAKE__COMPILER_ARCHITECTURE_ID into account to qualify CMAKE__COMPILER_VERSION.
What does this mean exactly? Do I need to set CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID
or is it determined automatically by the compiler identification? Does this restrict usage of generator expressions such as $<C_COMPILER_VERSION:version>
? Can you provide an example?
What is meant by "standalone" toolsets, and what is impact compared to specifying a toolset?
When using the Tasking Toolset support, is it still recommended to use the control programs (e.g. cctc) over the compiler (e.g. ctc)?