CMake: Fix nullability warnings for the version_info target.
Add "SYSTEM" to "target_include_directories(version_info ...", which keeps ``` /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] unsigned char *_base; ^ ``` from being printed here.
This commit is contained in:
parent
a7d927a9e9
commit
9c344b207d
|
@ -95,7 +95,7 @@ endif()
|
|||
|
||||
target_link_libraries(version_info PRIVATE ${ZLIB_LIBRARIES})
|
||||
|
||||
target_include_directories(version_info PRIVATE ${ZLIB_INCLUDE_DIRS})
|
||||
target_include_directories(version_info SYSTEM PRIVATE ${ZLIB_INCLUDE_DIRS})
|
||||
|
||||
set_target_properties(ui version_info PROPERTIES
|
||||
LINK_FLAGS "${WS_LINK_FLAGS}"
|
||||
|
|
Loading…
Reference in New Issue