The first one will use the launcher for all languages in the build. The second one will use the same launcher for
CXX but not for other languages. The two methods are slightly different as the second one would allow for a different launcher for different languages. The second method allows for finer control and may be preferred. There are also environment variables and directory and target properties for control which items use a launcher.
CLICK HERE to find out more related problems solutions.