I would need a compiler launcher and arguments passed to it. https://cmake.org/cmake/help/latest/prop_tgt/LANG_COMPILER_LAUNCHER.html states that you can pass a semicolon-separated list. Nevertheless if I do, I only get the first element in double quotes. The other arguments are dropped.
Am I just miss-reading the documentation? Or using it wrong?
Don’t use set_target_properties() for properties which take more than one value; the command interprets its arguments as alternating propertyvaluepropertyvalue… You’d need to quote the value, but I’d say it’s safer to just use set_property():
set_property(TARGET example PROPERTY CXX_COMPILER_LAUNCHER ${launcher})