append instead of replace CXX_FLAGS in cmakelists.txt