mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'target-include-directories'
d662dffFix shadowed variable warning on dashboard resultsf66e735Fix compiler warning reported on older Borland dashboard.d90eed4Fix compiler error reported on older Borland dashboard.8233636Update the documentation regarding INCLUDE_DIRECTORIES.d899eb7Call ExpandVariablesInString for each target's INCLUDE_DIRECTORIESc21db87Make search paths ordered and unique22021f0Remove cmMakefile::GetIncludeDirectories9106b56Extract and use the INCLUDE_DIRECTORIES target properties.840509bKeep the INCLUDE_DIRECTORIES target property up to date.a4d5f7bAdd API to get the ordered includes for a target.8adaee2CMake: Eliminate cmMakefile::IncludeDirectories7620932Remove include flags memoization.97a5faaMake it safe to call this method without creating duplicates.edd5303Refactor GetIncludeFlags to take includes instead of fetching them
This commit is contained in:
@@ -58,13 +58,21 @@ public:
|
||||
{
|
||||
return
|
||||
" include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n"
|
||||
"Add the given directories to those searched by the compiler for "
|
||||
"include files. By default the directories are appended onto "
|
||||
"the current list of directories. This default behavior can be "
|
||||
"changed by setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. "
|
||||
"By using BEFORE or AFTER you can select between appending and "
|
||||
"prepending, independent from the default. "
|
||||
"If the SYSTEM option is given the compiler will be told that the "
|
||||
"Add the given directories to those the compiler uses to search "
|
||||
"for include files. "
|
||||
"These directories are added to the directory property "
|
||||
"INCLUDE_DIRECTORIES for the current CMakeLists file. "
|
||||
"They are also added to the target property INCLUDE_DIRECTORIES "
|
||||
"for each target in the current CMakeLists file. "
|
||||
"The target property values are the ones used by the generators."
|
||||
"\n"
|
||||
"By default the directories are appended onto the current list of "
|
||||
"directories. "
|
||||
"This default behavior can be changed by setting "
|
||||
"CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. "
|
||||
"By using AFTER or BEFORE explicitly, you can select between "
|
||||
"appending and prepending, independent of the default. "
|
||||
"If the SYSTEM option is given, the compiler will be told the "
|
||||
"directories are meant as system include directories on some "
|
||||
"platforms.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user