CMake: how to change compiler for individual target
NOTE Some have reported that this doesn’t work for them. It definitely used to work for the project I was working on at the time, which was using CMake’s Makefile generator on Ubuntu. It’s possible this technique (hack?) only works with CMake’s Makefile generator, so if you’re using Ninja or another generator, that might be … Read more