mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-25 17:03:05 +00:00
Mark extern library includes as SYSTEM
With CMake 3.25, there's a target property we could use to deal with this with a little less mess, but we use 3.16 right now.
This commit is contained in:
parent
a433114937
commit
f39ba9783a
4 changed files with 5 additions and 5 deletions
4
extern/oics/CMakeLists.txt
vendored
4
extern/oics/CMakeLists.txt
vendored
|
|
@ -13,7 +13,7 @@ add_library(oics STATIC
|
|||
include/oics/ICSPrerequisites.h
|
||||
)
|
||||
|
||||
target_include_directories(oics PUBLIC include)
|
||||
target_include_directories(oics SYSTEM PUBLIC include)
|
||||
target_include_directories(oics PRIVATE include/oics)
|
||||
|
||||
if(USE_SYSTEM_TINYXML)
|
||||
|
|
@ -25,7 +25,7 @@ else()
|
|||
tinyxml/tinyxmlerror.cpp
|
||||
tinyxml/tinystr.cpp
|
||||
)
|
||||
target_include_directories(local_tinyxml PUBLIC tinyxml)
|
||||
target_include_directories(local_tinyxml SYSTEM PUBLIC tinyxml)
|
||||
target_link_libraries(oics local_tinyxml)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
2
extern/osg-ffmpeg-videoplayer/CMakeLists.txt
vendored
2
extern/osg-ffmpeg-videoplayer/CMakeLists.txt
vendored
|
|
@ -20,7 +20,7 @@ target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${FFmpeg_LIBRARIES})
|
|||
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${OSG_LIBRARIES})
|
||||
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} SDL2::SDL2)
|
||||
|
||||
target_include_directories(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PUBLIC include ${FFmpeg_INCLUDE_DIRS})
|
||||
target_include_directories(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} SYSTEM PUBLIC include ${FFmpeg_INCLUDE_DIRS})
|
||||
target_include_directories(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PRIVATE include/osg-ffmpeg-videoplayer)
|
||||
|
||||
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
||||
|
|
|
|||
2
extern/osgQt/CMakeLists.txt
vendored
2
extern/osgQt/CMakeLists.txt
vendored
|
|
@ -16,7 +16,7 @@ set(OSGQT_SOURCE_FILES
|
|||
)
|
||||
|
||||
add_library(${OSGQT_LIBRARY} STATIC ${OSGQT_SOURCE_FILES})
|
||||
target_include_directories(${OSGQT_LIBRARY} PUBLIC include)
|
||||
target_include_directories(${OSGQT_LIBRARY} SYSTEM PUBLIC include)
|
||||
target_include_directories(${OSGQT_LIBRARY} PRIVATE include/osgQt)
|
||||
|
||||
target_link_libraries(${OSGQT_LIBRARY} Qt::Core Qt::OpenGL Qt::OpenGLWidgets)
|
||||
|
|
|
|||
2
extern/smhasher/CMakeLists.txt
vendored
2
extern/smhasher/CMakeLists.txt
vendored
|
|
@ -1,3 +1,3 @@
|
|||
add_library(smhasher STATIC MurmurHash3.cpp include/smhasher/MurmurHash3.h)
|
||||
target_include_directories(smhasher PUBLIC include)
|
||||
target_include_directories(smhasher SYSTEM PUBLIC include)
|
||||
target_include_directories(smhasher PRIVATE include/smhasher)
|
||||
|
|
|
|||
Loading…
Reference in a new issue