You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,11 +120,14 @@ Named String:
120
120
121
121
## `target_link_system_libraries` function
122
122
123
-
A very useful function that accepts the same arguments as `target_link_libraries` while marking their include directories as "SYSTEM", which suppresses their warnings. This helps in enabling `WARNINGS_AS_ERRORS` for your own source code.
123
+
A function that accepts the same arguments as `target_link_libraries`. It has the following features:
124
+
125
+
- The include directories of the library are included as `SYSTEM` to suppress their warnings. This helps in enabling `WARNINGS_AS_ERRORS` for your own source code.
126
+
- For installation of the package, the includes are considered to be at `${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}`.
124
127
125
128
## `target_include_system_directories` function
126
129
127
-
Similar to `target_include_directories`, but it suppresses the warnings. It is useful if you want to include some external directories directly.
130
+
A function that accepts the same arguments as `target_include_directories`. It has the above mentioned features of `target_link_system_libraries`
0 commit comments