diff --git a/examples/filesystem/01_minimal/CMakeLists.txt b/examples/filesystem/01_minimal/CMakeLists.txt index 296b774..779aceb 100644 --- a/examples/filesystem/01_minimal/CMakeLists.txt +++ b/examples/filesystem/01_minimal/CMakeLists.txt @@ -31,7 +31,7 @@ add_dependencies(${TRGT} base_static) add_dependencies(${TRGT} filesystem_static) target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_link_libraries(${TRGT} myx-filesystem) target_link_libraries(${TRGT} Qt5::Core) diff --git a/examples/qt/01_translators/CMakeLists.txt b/examples/qt/01_translators/CMakeLists.txt index 25672f3..e8f64cb 100644 --- a/examples/qt/01_translators/CMakeLists.txt +++ b/examples/qt/01_translators/CMakeLists.txt @@ -38,7 +38,7 @@ add_dependencies(${TRGT} qt_static) # Qt5 target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_link_libraries(${TRGT} myx-qt) target_link_libraries(${TRGT} Qt5::Core) diff --git a/src/myx/base/CMakeLists.txt b/src/myx/base/CMakeLists.txt index eef53eb..23f255f 100644 --- a/src/myx/base/CMakeLists.txt +++ b/src/myx/base/CMakeLists.txt @@ -31,7 +31,7 @@ add_pvs_check(${TRGT}) # Создание цели для автоматического форматирования кода add_format_sources(${TRGT} ${TRGT_sources} ${TRGT_headers}) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) cotire(${TRGT}) diff --git a/src/myx/filesystem/CMakeLists.txt b/src/myx/filesystem/CMakeLists.txt index b5910c0..17e9c1d 100644 --- a/src/myx/filesystem/CMakeLists.txt +++ b/src/myx/filesystem/CMakeLists.txt @@ -33,8 +33,8 @@ add_pvs_check(${TRGT}) # Создание цели для автоматического форматирования кода add_format_sources(${TRGT} ${TRGT_sources} ${TRGT_headers}) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) -target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT} PRIVATE ${CMAKE_BINARY_DIR}/include) cotire(${TRGT}) diff --git a/src/myx/math/CMakeLists.txt b/src/myx/math/CMakeLists.txt index 5473c58..199e71d 100644 --- a/src/myx/math/CMakeLists.txt +++ b/src/myx/math/CMakeLists.txt @@ -42,8 +42,8 @@ add_pvs_check(${TRGT}) # Создание цели для автоматического форматирования кода add_format_sources(${TRGT} ${TRGT_sources} ${TRGT_headers}) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) -target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT} PRIVATE ${CMAKE_BINARY_DIR}/include) cotire(${TRGT}) diff --git a/src/myx/qt/CMakeLists.txt b/src/myx/qt/CMakeLists.txt index c5594f6..5e4079c 100644 --- a/src/myx/qt/CMakeLists.txt +++ b/src/myx/qt/CMakeLists.txt @@ -30,8 +30,8 @@ add_pvs_check(${TRGT}) # Создание цели для автоматического форматирования кода add_format_sources(${TRGT} ${TRGT_sources} ${TRGT_headers}) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) -target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PRIVATE ${CMAKE_SOURCE_DIR}/src) cotire(${TRGT}) diff --git a/src/myx/redis/CMakeLists.txt b/src/myx/redis/CMakeLists.txt index c014fc9..23617b2 100644 --- a/src/myx/redis/CMakeLists.txt +++ b/src/myx/redis/CMakeLists.txt @@ -38,9 +38,9 @@ add_pvs_check(${TRGT}) # Создание цели для автоматического форматирования кода add_format_sources(${TRGT} ${TRGT_sources} ${TRGT_headers}) -target_include_directories(${TRGT} PUBLIC ${Qt5Core_INCLUDE_DIRS}) -target_include_directories(${TRGT} PUBLIC ${Qt5Network_INCLUDE_DIRS}) -target_include_directories(${TRGT} PRIVATE ${CMAKE_SOURCE_DIR}/src) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PUBLIC ${Qt5Network_INCLUDE_DIRS}) +target_include_directories(${TRGT} SYSTEM PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT} PRIVATE ${CMAKE_BINARY_DIR}/include) cotire(${TRGT})