mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Added -Werror to demos project
This commit is contained in:
committed by
Baldur Karlsson
parent
b2b76486a5
commit
eae38aad8a
@@ -107,6 +107,9 @@ project(demos)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
list(APPEND warning_flags -Werror)
|
||||
string(REPLACE ";" " " warning_flags "${warning_flags}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warning_flags}")
|
||||
endif()
|
||||
|
||||
if(NOT APPLE AND UNIX)
|
||||
|
||||
Reference in New Issue
Block a user