add thsi command to proeference of Clion:
-D CMAKE_CXX_COMPILER=/usr/local/bin/g++-9
PS:
to find the correct version of g++, you can search it :
cd /usr/local/bin && ls
and find g++:
add thsi command to proeference of Clion:
-D CMAKE_CXX_COMPILER=/usr/local/bin/g++-9
PS:
to find the correct version of g++, you can search it :
cd /usr/local/bin && ls
and find g++: