I have a c++ project, it has 2 modules, each as a target. target A need compile with g++4.8, target B need compile with g++7, how should i compose the CMakeLists.txt for this purpose? i tried many effects but still cannot succeed, thanks in advance!
Thanks & Regards, Martin.