File tree 9 files changed +17
-17
lines changed
9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -186,21 +186,21 @@ add_definitions(-DBOOST_FILESYSTEM_NO_DEPRECATED)
186
186
add_definitions (-DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
187
187
188
188
link_directories (${Boost_LIBRARY_DIRS} )
189
- include_directories (${Boost_INCLUDE_DIRS} )
189
+ include_directories (SYSTEM ${Boost_INCLUDE_DIRS} )
190
190
191
191
find_package (OpenSSL REQUIRED)
192
- include_directories (${OPENSSL_INCLUDE_DIR} )
192
+ include_directories (SYSTEM ${OPENSSL_INCLUDE_DIR} )
193
193
194
194
set (base_DEPS ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} )
195
195
set (base_OBJS $<TARGET_OBJECTS:mmatch> $<TARGET_OBJECTS:socketpair> $<TARGET_OBJECTS:base>)
196
196
197
197
# JSON
198
198
find_package (JSON)
199
- include_directories (${JSON_INCLUDE} )
199
+ include_directories (SYSTEM ${JSON_INCLUDE} )
200
200
201
201
# UTF8CPP
202
202
find_package (UTF8CPP)
203
- include_directories (${UTF8CPP_INCLUDE} )
203
+ include_directories (SYSTEM ${UTF8CPP_INCLUDE} )
204
204
205
205
find_package (Editline)
206
206
set (HAVE_EDITLINE "${EDITLINE_FOUND} " )
@@ -223,12 +223,12 @@ endif()
223
223
224
224
if (EDITLINE_FOUND)
225
225
list (APPEND base_DEPS ${EDITLINE_LIBRARIES} )
226
- include_directories (${EDITLINE_INCLUDE_DIR} )
226
+ include_directories (SYSTEM ${EDITLINE_INCLUDE_DIR} )
227
227
endif ()
228
228
229
229
if (TERMCAP_FOUND)
230
230
list (APPEND base_DEPS ${TERMCAP_LIBRARIES} )
231
- include_directories (${TERMCAP_INCLUDE_DIR} )
231
+ include_directories (SYSTEM ${TERMCAP_INCLUDE_DIR} )
232
232
endif ()
233
233
234
234
if (WIN32 )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ set_target_properties (
19
19
FOLDER Lib
20
20
)
21
21
22
- include_directories (${Boost_INCLUDE_DIRS} )
22
+ include_directories (SYSTEM ${Boost_INCLUDE_DIRS} )
23
23
24
24
if (ICINGA2_WITH_CHECKER)
25
25
list (APPEND icinga_app_SOURCES $<TARGET_OBJECTS:checker>)
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ if(HAVE_SYSTEMD)
130
130
find_path (SYSTEMD_INCLUDE_DIR
131
131
NAMES systemd/sd-daemon.h
132
132
HINTS ${SYSTEMD_ROOT_DIR} )
133
- include_directories (${SYSTEMD_INCLUDE_DIR} )
133
+ include_directories (SYSTEM ${SYSTEMD_INCLUDE_DIR} )
134
134
set_property (
135
135
SOURCE ${CMAKE_CURRENT_SOURCE_DIR} /journaldlogger.cpp
136
136
APPEND PROPERTY COMPILE_DEFINITIONS
@@ -140,13 +140,13 @@ endif()
140
140
141
141
add_library (base OBJECT ${base_SOURCES} )
142
142
143
- include_directories (${icinga2_SOURCE_DIR} /third-party/execvpe)
143
+ include_directories (SYSTEM ${icinga2_SOURCE_DIR} /third-party/execvpe)
144
144
link_directories (${icinga2_BINARY_DIR} /third-party/execvpe)
145
145
146
- include_directories (${icinga2_SOURCE_DIR} /third-party/mmatch)
146
+ include_directories (SYSTEM ${icinga2_SOURCE_DIR} /third-party/mmatch)
147
147
link_directories (${icinga2_BINARY_DIR} /third-party/mmatch)
148
148
149
- include_directories (${icinga2_SOURCE_DIR} /third-party/socketpair)
149
+ include_directories (SYSTEM ${icinga2_SOURCE_DIR} /third-party/socketpair)
150
150
link_directories (${icinga2_BINARY_DIR} /third-party/socketpair)
151
151
152
152
set_target_properties (
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ endif()
12
12
13
13
add_library (db_ido_mysql OBJECT ${db_ido_mysql_SOURCES} )
14
14
15
- include_directories (${MYSQL_INCLUDE_DIR} )
15
+ include_directories (SYSTEM ${MYSQL_INCLUDE_DIR} )
16
16
17
17
add_dependencies (db_ido_mysql base config icinga db_ido)
18
18
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ endif()
12
12
13
13
add_library (db_ido_pgsql OBJECT ${db_ido_pgsql_SOURCES} )
14
14
15
- include_directories (${PostgreSQL_INCLUDE_DIRS} )
15
+ include_directories (SYSTEM ${PostgreSQL_INCLUDE_DIRS} )
16
16
17
17
add_dependencies (db_ido_pgsql base config icinga db_ido)
18
18
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ endif()
15
15
16
16
add_library (icingadb OBJECT ${icingadb_SOURCES} )
17
17
18
- include_directories (${icinga2_SOURCE_DIR} /third-party)
18
+ include_directories (SYSTEM ${icinga2_SOURCE_DIR} /third-party)
19
19
20
20
add_dependencies (icingadb base config icinga remote)
21
21
Original file line number Diff line number Diff line change 1
1
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
2
3
- include_directories (${MYSQL_INCLUDE_DIR} )
3
+ include_directories (SYSTEM ${MYSQL_INCLUDE_DIR} )
4
4
5
5
set (mysql_shim_SOURCES
6
6
mysql_shim.def
Original file line number Diff line number Diff line change 1
1
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
2
3
3
link_directories (${PostgreSQL_LIBRARY_DIRS} )
4
- include_directories (${PostgreSQL_INCLUDE_DIRS} )
4
+ include_directories (SYSTEM ${PostgreSQL_INCLUDE_DIRS} )
5
5
6
6
set (pgsql_shim_SOURCES
7
7
pgsql_shim.def
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function(add_boost_test _name)
130
130
131
131
if (Boost_FOUND)
132
132
133
- include_directories (${Boost_INCLUDE_DIRS} )
133
+ include_directories (SYSTEM ${Boost_INCLUDE_DIRS} )
134
134
135
135
set (includeType)
136
136
foreach (src ${SOURCES} )
You can’t perform that action at this time.
0 commit comments