update CMakeLists.txt for g++