Skip to content

Commit 2f9f14d

Browse files
Vikrant Shahvik748
andauthored
Suppress compile time warnings thrown by spinnaker and other libraries by using the SYSTEM directive in CMakeLists (#81)
Co-authored-by: Vikrant Shah <vikrantshah@gmail.com>
1 parent 289f37c commit 2f9f14d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64 OR x86_32)
7676
include_directories(
7777
${PROJECT_INCLUDE_DIR}
7878
${catkin_INCLUDE_DIRS}
79-
${SPINNAKER_INCLUDE_DIR}
80-
${OpenCV_INCLUDE_DIRS}
81-
${Boost_INCLUDE_DIR}
79+
SYSTEM ${SPINNAKER_INCLUDE_DIR}
80+
SYSTEM ${OpenCV_INCLUDE_DIRS}
81+
SYSTEM ${Boost_INCLUDE_DIR}
8282
${LibUnwind_INCLUDE_DIRS}
8383
)
8484

@@ -97,9 +97,9 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
9797
include_directories(
9898
${PROJECT_INCLUDE_DIR}
9999
${catkin_INCLUDE_DIRS}
100-
${SPINNAKER_INCLUDE_DIR}
101-
${OpenCV_INCLUDE_DIRS}
102-
${Boost_INCLUDE_DIR}
100+
SYSTEM ${SPINNAKER_INCLUDE_DIR}
101+
SYSTEM ${OpenCV_INCLUDE_DIRS}
102+
SYSTEM ${Boost_INCLUDE_DIR}
103103
)
104104

105105
link_directories( ${SPINNAKER_LIB_DIR} )

0 commit comments

Comments
 (0)