aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2022-03-13 18:37:06 -0700
committerRechi <Rechi@users.noreply.github.com>2022-03-13 18:37:06 -0700
commitaf0820f4b6681e262a5d98e93c973e3e47920491 (patch)
tree3edc38b7409091b0c35427c9753acf95d0ad4775 /lib
parentb3156cccd0db85c9dfe90f0c63121e2b9d7a058f (diff)
[cmake] declare directories of external libraries as system headers
This allows the compiler and checker tools to ignore warnings in the library headers.
Diffstat (limited to 'lib')
-rw-r--r--lib/libUPnP/CMakeLists.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/libUPnP/CMakeLists.txt b/lib/libUPnP/CMakeLists.txt
index c8f25ec95e..c610060649 100644
--- a/lib/libUPnP/CMakeLists.txt
+++ b/lib/libUPnP/CMakeLists.txt
@@ -109,14 +109,16 @@ if(CORE_SYSTEM_NAME STREQUAL "freebsd")
target_compile_definitions(upnp PUBLIC -DNPT_CONFIG_HAVE_GETADDRINFO)
endif()
-target_include_directories(upnp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
- Platinum/Source/Core
- Platinum/Source/Platinum
- Platinum/Source/Devices/MediaConnect
- Platinum/Source/Devices/MediaRenderer
- Platinum/Source/Devices/MediaServer
- Neptune/Source/Core
- Neptune/Source/System/Posix)
+set(INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}
+ Platinum/Source/Core
+ Platinum/Source/Platinum
+ Platinum/Source/Devices/MediaConnect
+ Platinum/Source/Devices/MediaRenderer
+ Platinum/Source/Devices/MediaServer
+ Neptune/Source/Core
+ Neptune/Source/System/Posix)
+target_include_directories(upnp SYSTEM INTERFACE ${INCLUDE_DIRECTORIES})
+target_include_directories(upnp PRIVATE ${INCLUDE_DIRECTORIES})
if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
target_include_directories(upnp PRIVATE Neptune/Source/System/Win32)
endif()