Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 25e0a0e

Browse files
committed
Make Wno-sign-compare flag non-caffe2 specific
1 parent cf08de0 commit 25e0a0e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ message(STATUS "CMAKE_CXX_COMPILER_VERSION is ${CMAKE_CXX_COMPILER_VERSION}")
2020
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
2121
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "5.4")
2222
# 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")
2424
endif()
2525
message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")
2626
if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
@@ -170,10 +170,6 @@ message(STATUS "Found Halide.so file: ${HALIDE_LIBRARIES}")
170170

171171
# Caffe2
172172
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-
177173
# eigen - needed inside Caffe2 only
178174
# Caffe2 probably used its bundled Eigen (which it didn't install) in this case.
179175
message(WARNING "Couldn't find Eigen headers, assuming caffe2 used in-tree headers")

0 commit comments

Comments
 (0)