Update CMakeLists.txt

set -Werror for strict code