Commit 265cbf96 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by Scott Cyphers

CMAKE: fixed compilation with -Wundef compiler flag (#3828)

parent afd396dc
......@@ -35,10 +35,10 @@ if(WIN32)
)
endif()
if(LINUX)
if(UNIX)
# workaround for compile error
# related: https://github.com/intel/mkl-dnn/issues/55
set(GTEST_CXX_FLAGS "-Wno-unused-result ${CMAKE_CXX_FLAGS}")
set(GTEST_CXX_FLAGS "-Wno-unused-result ${CMAKE_CXX_FLAGS} -Wno-undef")
else()
set(GTEST_CXX_FLAGS ${CMAKE_CXX_FLAGS})
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