Add SYSTEM flag to target_include_directories where appropriate
This commit is contained in:
parent
a79798285d
commit
66cca9be57
21 changed files with 30 additions and 30 deletions
2
external/angle/CMakeLists.txt
vendored
2
external/angle/CMakeLists.txt
vendored
|
|
@ -8,7 +8,7 @@ add_library(external_angle INTERFACE IMPORTED GLOBAL)
|
|||
add_library(desktop-app::external_angle ALIAS external_angle)
|
||||
|
||||
if (WIN32)
|
||||
target_include_directories(external_angle
|
||||
target_include_directories(external_angle SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/tg_angle/include
|
||||
)
|
||||
|
|
|
|||
4
external/auto_updates/xz/CMakeLists.txt
vendored
4
external/auto_updates/xz/CMakeLists.txt
vendored
|
|
@ -11,7 +11,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
find_package(LibLZMA REQUIRED)
|
||||
target_link_libraries(external_xz INTERFACE LibLZMA::LibLZMA)
|
||||
elseif (APPLE AND NOT build_osx)
|
||||
target_include_directories(external_xz
|
||||
target_include_directories(external_xz SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/macos/include
|
||||
)
|
||||
|
|
@ -20,7 +20,7 @@ elseif (APPLE AND NOT build_osx)
|
|||
/usr/local/macos/lib/liblzma.a
|
||||
)
|
||||
elseif (APPLE)
|
||||
target_include_directories(external_xz
|
||||
target_include_directories(external_xz SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/include
|
||||
)
|
||||
|
|
|
|||
2
external/fcitx5_qt5/CMakeLists.txt
vendored
2
external/fcitx5_qt5/CMakeLists.txt
vendored
|
|
@ -67,7 +67,7 @@ else()
|
|||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(XKBCOMMON REQUIRED xkbcommon)
|
||||
|
||||
target_include_directories(external_fcitx5_qt5
|
||||
target_include_directories(external_fcitx5_qt5 SYSTEM
|
||||
PUBLIC
|
||||
${XKBCOMMON_INCLUDE_DIRS}
|
||||
)
|
||||
|
|
|
|||
2
external/ffmpeg/CMakeLists.txt
vendored
2
external/ffmpeg/CMakeLists.txt
vendored
|
|
@ -17,7 +17,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
pkg_check_modules(SWRESAMPLE REQUIRED IMPORTED_TARGET libswresample)
|
||||
|
||||
if (DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC)
|
||||
target_include_directories(external_ffmpeg
|
||||
target_include_directories(external_ffmpeg SYSTEM
|
||||
INTERFACE
|
||||
${AVCODEC_STATIC_INCLUDE_DIRS}
|
||||
${AVFORMAT_STATIC_INCLUDE_DIRS}
|
||||
|
|
|
|||
2
external/glib/CMakeLists.txt
vendored
2
external/glib/CMakeLists.txt
vendored
|
|
@ -22,7 +22,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
PkgConfig::GLIB2
|
||||
)
|
||||
else()
|
||||
target_include_directories(external_glib
|
||||
target_include_directories(external_glib SYSTEM
|
||||
INTERFACE
|
||||
${GIO_UNIX_INCLUDE_DIRS}
|
||||
${GIO_INCLUDE_DIRS}
|
||||
|
|
|
|||
2
external/glibmm/CMakeLists.txt
vendored
2
external/glibmm/CMakeLists.txt
vendored
|
|
@ -18,7 +18,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
PkgConfig::GLIBMM
|
||||
)
|
||||
else()
|
||||
target_include_directories(external_glibmm
|
||||
target_include_directories(external_glibmm SYSTEM
|
||||
INTERFACE
|
||||
${GIOMM_INCLUDE_DIRS}
|
||||
${GLIBMM_INCLUDE_DIRS}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ else()
|
|||
else()
|
||||
pkg_check_modules(X11 REQUIRED x11)
|
||||
|
||||
target_include_directories(external_hime_im_client
|
||||
target_include_directories(external_hime_im_client SYSTEM
|
||||
PRIVATE
|
||||
${X11_INCLUDE_DIRS}
|
||||
)
|
||||
|
|
|
|||
2
external/jemalloc/CMakeLists.txt
vendored
2
external/jemalloc/CMakeLists.txt
vendored
|
|
@ -35,7 +35,7 @@ if (NOT JEMALLOC_FOUND)
|
|||
IMPORTED_LOCATION "${BINARY_DIR}/lib/libjemalloc.a"
|
||||
)
|
||||
|
||||
target_include_directories(external_jemalloc_bundled
|
||||
target_include_directories(external_jemalloc_bundled SYSTEM
|
||||
INTERFACE
|
||||
${SOURCE_DIR}/include
|
||||
)
|
||||
|
|
|
|||
2
external/jpeg/CMakeLists.txt
vendored
2
external/jpeg/CMakeLists.txt
vendored
|
|
@ -11,7 +11,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
find_package(JPEG)
|
||||
target_link_libraries(external_jpeg INTERFACE JPEG::JPEG)
|
||||
elseif (WIN32)
|
||||
target_include_directories(external_jpeg INTERFACE ${libs_loc}/mozjpeg)
|
||||
target_include_directories(external_jpeg SYSTEM INTERFACE ${libs_loc}/mozjpeg)
|
||||
target_link_libraries(external_jpeg INTERFACE ${libs_loc}/mozjpeg/$<IF:$<CONFIG:Debug>,Debug,Release>/jpeg-static.lib)
|
||||
elseif (APPLE AND NOT build_osx)
|
||||
target_link_libraries(external_jpeg INTERFACE /usr/local/macos/lib/libjpeg.a)
|
||||
|
|
|
|||
2
external/kwayland/CMakeLists.txt
vendored
2
external/kwayland/CMakeLists.txt
vendored
|
|
@ -19,7 +19,7 @@ else()
|
|||
IMPORTED_LOCATION "${KWAYLAND_LIBRARY}"
|
||||
)
|
||||
|
||||
target_include_directories(external_kwayland
|
||||
target_include_directories(external_kwayland SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/include/KF5
|
||||
/usr/local/include/KF5/KWayland/Client
|
||||
|
|
|
|||
2
external/openal/CMakeLists.txt
vendored
2
external/openal/CMakeLists.txt
vendored
|
|
@ -10,7 +10,7 @@ add_library(desktop-app::external_openal ALIAS external_openal)
|
|||
if (DESKTOP_APP_USE_PACKAGED)
|
||||
find_package(OpenAL)
|
||||
if (OPENAL_FOUND)
|
||||
target_include_directories(external_openal INTERFACE ${OPENAL_INCLUDE_DIR})
|
||||
target_include_directories(external_openal SYSTEM INTERFACE ${OPENAL_INCLUDE_DIR})
|
||||
target_link_libraries(external_openal INTERFACE ${OPENAL_LIBRARY})
|
||||
else()
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
|
|
|||
8
external/opus/CMakeLists.txt
vendored
8
external/opus/CMakeLists.txt
vendored
|
|
@ -17,7 +17,7 @@ else()
|
|||
add_library(desktop-app::external_opus ALIAS external_opus)
|
||||
|
||||
if (WIN32)
|
||||
target_include_directories(external_opus
|
||||
target_include_directories(external_opus SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/opus/include
|
||||
)
|
||||
|
|
@ -32,7 +32,7 @@ else()
|
|||
IMPORTED_LOCATION_DEBUG "${opus_lib_loc}/Debug/opus.lib"
|
||||
)
|
||||
elseif (APPLE AND NOT build_osx)
|
||||
target_include_directories(external_opus
|
||||
target_include_directories(external_opus SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/macos/include/opus
|
||||
)
|
||||
|
|
@ -40,7 +40,7 @@ else()
|
|||
IMPORTED_LOCATION /usr/local/macos/lib/libopus.a
|
||||
)
|
||||
elseif (APPLE)
|
||||
target_include_directories(external_opus
|
||||
target_include_directories(external_opus SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/include/opus
|
||||
)
|
||||
|
|
@ -48,7 +48,7 @@ else()
|
|||
IMPORTED_LOCATION /usr/local/lib/libopus.a
|
||||
)
|
||||
else()
|
||||
target_include_directories(external_opus
|
||||
target_include_directories(external_opus SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/include/opus
|
||||
)
|
||||
|
|
|
|||
2
external/qr_code_generator/CMakeLists.txt
vendored
2
external/qr_code_generator/CMakeLists.txt
vendored
|
|
@ -12,7 +12,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
find_path(QRCODE_INCLUDE_DIRS QrCode.hpp PATH_SUFFIXES qrcodegencpp qrcodegen)
|
||||
|
||||
if (QRCODE_LIBRARIES AND QRCODE_INCLUDE_DIRS)
|
||||
target_include_directories(external_qr_code_generator INTERFACE ${QRCODE_INCLUDE_DIRS})
|
||||
target_include_directories(external_qr_code_generator SYSTEM INTERFACE ${QRCODE_INCLUDE_DIRS})
|
||||
target_link_libraries(external_qr_code_generator INTERFACE ${QRCODE_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
6
external/qt/CMakeLists.txt
vendored
6
external/qt/CMakeLists.txt
vendored
|
|
@ -18,7 +18,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
Qt5::Network
|
||||
)
|
||||
|
||||
target_include_directories(external_qt
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${Qt5Core_PRIVATE_INCLUDE_DIRS}
|
||||
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
|
||||
|
|
@ -31,7 +31,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
if (Qt5XkbCommonSupport_FOUND)
|
||||
target_link_libraries(external_qt INTERFACE Qt5::XkbCommonSupport)
|
||||
|
||||
target_include_directories(external_qt
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${Qt5XkbCommonSupport_PRIVATE_INCLUDE_DIRS}
|
||||
)
|
||||
|
|
@ -40,7 +40,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
if (Qt5WaylandClient_FOUND)
|
||||
target_link_libraries(external_qt INTERFACE Qt5::WaylandClient)
|
||||
|
||||
target_include_directories(external_qt
|
||||
target_include_directories(external_qt SYSTEM
|
||||
INTERFACE
|
||||
${Qt5WaylandClient_PRIVATE_INCLUDE_DIRS}
|
||||
)
|
||||
|
|
|
|||
6
external/rnnoise/CMakeLists.txt
vendored
6
external/rnnoise/CMakeLists.txt
vendored
|
|
@ -18,7 +18,7 @@ else()
|
|||
|
||||
set(rnnoise_lib_loc ${libs_loc}/rnnoise/out)
|
||||
if (WIN32)
|
||||
target_include_directories(external_rnnoise
|
||||
target_include_directories(external_rnnoise SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/rnnoise/include
|
||||
)
|
||||
|
|
@ -27,7 +27,7 @@ else()
|
|||
IMPORTED_LOCATION_DEBUG "${rnnoise_lib_loc}/Debug/rnnoise.lib"
|
||||
)
|
||||
elseif (APPLE)
|
||||
target_include_directories(external_rnnoise
|
||||
target_include_directories(external_rnnoise SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/rnnoise/include
|
||||
)
|
||||
|
|
@ -36,7 +36,7 @@ else()
|
|||
IMPORTED_LOCATION_DEBUG "${rnnoise_lib_loc}/Debug/librnnoise.a"
|
||||
)
|
||||
else()
|
||||
target_include_directories(external_rnnoise
|
||||
target_include_directories(external_rnnoise SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/include
|
||||
)
|
||||
|
|
|
|||
2
external/ton/CMakeLists.txt
vendored
2
external/ton/CMakeLists.txt
vendored
|
|
@ -17,7 +17,7 @@ else()
|
|||
set(ton_lib_suffix .a)
|
||||
endif()
|
||||
|
||||
target_include_directories(external_ton
|
||||
target_include_directories(external_ton SYSTEM
|
||||
INTERFACE
|
||||
${ton_loc}
|
||||
${ton_loc}/crypto
|
||||
|
|
|
|||
4
external/webrtc/CMakeLists.txt
vendored
4
external/webrtc/CMakeLists.txt
vendored
|
|
@ -59,7 +59,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(external_webrtc
|
||||
target_include_directories(external_webrtc SYSTEM
|
||||
INTERFACE
|
||||
${webrtc_loc}
|
||||
${webrtc_loc}/third_party/abseil-cpp
|
||||
|
|
@ -70,7 +70,7 @@ else()
|
|||
${webrtc_lib_prefix}tg_owt
|
||||
)
|
||||
if (APPLE)
|
||||
target_include_directories(external_webrtc
|
||||
target_include_directories(external_webrtc SYSTEM
|
||||
INTERFACE
|
||||
${webrtc_loc}/sdk/objc
|
||||
${webrtc_loc}/sdk/objc/base
|
||||
|
|
|
|||
2
external/xxhash/CMakeLists.txt
vendored
2
external/xxhash/CMakeLists.txt
vendored
|
|
@ -12,7 +12,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
find_path(XXHASH_INCLUDE_DIRS xxhash.h)
|
||||
|
||||
if (XXHASH_LIBRARY AND XXHASH_INCLUDE_DIRS)
|
||||
target_include_directories(external_xxhash INTERFACE ${XXHASH_INCLUDE_DIRS})
|
||||
target_include_directories(external_xxhash SYSTEM INTERFACE ${XXHASH_INCLUDE_DIRS})
|
||||
target_link_libraries(external_xxhash INTERFACE ${XXHASH_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
2
external/zlib/CMakeLists.txt
vendored
2
external/zlib/CMakeLists.txt
vendored
|
|
@ -12,7 +12,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
target_link_libraries(external_zlib INTERFACE ZLIB::ZLIB)
|
||||
elseif (WIN32)
|
||||
target_compile_definitions(external_zlib INTERFACE ZLIB_WINAPI)
|
||||
target_include_directories(external_zlib INTERFACE ${libs_loc}/zlib)
|
||||
target_include_directories(external_zlib SYSTEM INTERFACE ${libs_loc}/zlib)
|
||||
if (build_win64)
|
||||
set(zlib_config_folder x64)
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ PUBLIC
|
|||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(GTK REQUIRED gtk+-3.0)
|
||||
target_include_directories(linux_gtk_helper PRIVATE ${GTK_INCLUDE_DIRS})
|
||||
target_include_directories(linux_gtk_helper SYSTEM PRIVATE ${GTK_INCLUDE_DIRS})
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||
target_include_directories(common_options
|
||||
target_include_directories(common_options SYSTEM
|
||||
INTERFACE
|
||||
/usr/local/macos/include
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue