This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ message(STATUS "CMAKE_CXX_COMPILER_VERSION is ${CMAKE_CXX_COMPILER_VERSION}")
20
20
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
21
21
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "5.4" )
22
22
# we officially support these compiler flags for compiler version 5.4 or less
23
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable -Werror" )
23
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable -Werror -Wno-sign-compare " )
24
24
endif ()
25
25
message (STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS} " )
26
26
if (${CMAKE_BUILD_TYPE} MATCHES "Debug" )
@@ -170,10 +170,6 @@ message(STATUS "Found Halide.so file: ${HALIDE_LIBRARIES}")
170
170
171
171
# Caffe2
172
172
if (WITH_CAFFE2 )
173
- # We suppress sign-compare error messages because caffe2 headers have these
174
- # errors.
175
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-sign-compare" )
176
-
177
173
# eigen - needed inside Caffe2 only
178
174
# Caffe2 probably used its bundled Eigen (which it didn't install) in this case.
179
175
message (WARNING "Couldn't find Eigen headers, assuming caffe2 used in-tree headers" )
You can’t perform that action at this time.
0 commit comments