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

Commit 9d0695e

Browse files
Theodoros TheodoridisSven Verdoolaege
authored andcommitted
Mark Caffe2 as a system include to suppress warnings
1 parent 8b31fcc commit 9d0695e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ if (WITH_CAFFE2)
176176
include_directories(third-party/caffe2/third_party/eigen)
177177

178178
find_path(CAFFE2_INCLUDE_DIR NAMES caffe2)
179-
include_directories(${CAFFE2_INCLUDE_DIR})
179+
include_directories(SYSTEM ${CAFFE2_INCLUDE_DIR})
180180
find_library(CAFFE2_CPU_LIBRARIES NAMES caffe2 PATHS ${CMAKE_INSTALL_PREFIX} PATH_SUFFIXES lib lib64)
181181
message(STATUS "Found Caffe2_CPU: ${CAFFE2_CPU_LIBRARIES}")
182182
if (WITH_CUDA)

0 commit comments

Comments
 (0)