Untested: don't replace when CMAKE_CXX_FLAGS is not set