Unverified Commit 39d0453f authored by Yixing Lao's avatar Yixing Lao Committed by GitHub

Fix warning-as-error (#1029)

parent ff581e05
......@@ -122,7 +122,7 @@ endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ngraph_var(NGRAPH_WARNINGS_AS_ERRORS DEFAULT "OFF")
if (NOT ${NGRAPH_WARNINGS_AS_ERRORS})
if (${NGRAPH_WARNINGS_AS_ERRORS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
message(STATUS "Warnings as errors")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment