Description
Specifically, we should replace
string(APPEND CMAKE_CXX_FLAGS " -std=c++11")
With CMAKE_CXX_STANDARD, and use compile feature requirements.
And replace
string(APPEND CMAKE_CXX_FLAGS " -Wformat-security")
With compile options instead of appending to CMAKE_CXX_FLAGS.