diff --git a/CMakeLists.txt b/CMakeLists.txt index 35f1cc6953..35cf3b7e5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,8 +169,8 @@ if(OVERTE_WARNINGS_WHITELIST) endif() if(OVERTE_WARNINGS_AS_ERRORS) - set(ENV{CXXFLAGS "$ENV{CXXFLAGS} -Werror"}) - set(ENV{CFLAGS "$ENV{CXXFLAGS} -Werror"}) + set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -Werror") + set(ENV{CFLAGS} "$ENV{CXXFLAGS} -Werror") endif()