the documentation of <LANG>_COMPILER_LAUNCHER suggests — although not in very explicit terms — that only Unix Makefiles and Ninja are supported for this property:
Specify a semicolon-separated list containing a command line for a compiler launching tool. The Makefile Generators and the Ninja generator will run this tool and pass the compiler and its arguments to the tool. Some example tools are distcc and ccache.
It’s very indirect indeed, but it boils down to this chain:
Environment variable CMAKE_<LANG>_COMPILER_LAUNCHER pre-populates CMake cache variable CMAKE_<LANG>_COMPILER_LAUNCHER if no other value is specified for the latter.
The value of CMake cache variable CMAKE_<LANG>_COMPILER_LAUNCHER when a target is created is used as the initial value of the target’s property <LANG>_COMPILER_LAUNCHER
The docs of <LANG>_COMPILER_LAUNCHER suggest that it only applies with Makefile and Ninja generators.
So while there is no explicit limitation to Make/Ninja mentioned in the variables’ documentation, it follows from the way they work. They only affect the property, and the property only applies to Make/Ninja.
Fair enough, thanks! So it’s not supported. Just wondering: when someone wants to affect the property they’ll be told to use the environment variable or CMake variable. Does it make sense to raise this as a ticket on the project?