summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeDirectories/TargetIncludeDirectories/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add_library: Now support aliasing unknown import targetsRobert Maynard2019-03-261-1/+2
| | | | Fixes #18327
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Add $<LINK_LANGUAGE> generator expressionStephen Kelly2013-05-241-0/+1
| | | | | | They can't be used when evaluating link libraries, but they can be used for include directories and compile definitions. Later they can be used for compile options.
* Add the JOIN generator expression.Stephen Kelly2013-05-161-0/+1
| | | | | | This generator expression joins a list with a separator. The separator may contain arbitrary content, such as commas, which is ordinarily a delimiter in the generator expression syntax.
* GexEx: Validate Target names and property names differently.Stephen Kelly2012-10-221-0/+1
| | | | | In the unit test, use the same IMPORTED_LOCATION trick that the ExportImport test uses.
* GenEx: Test the use of generator expressions to generate lists.Stephen Kelly2012-10-171-0/+2
| | | | | | We can't test this in the GeneratorExpression unit test because the ';' chars are processed specically by the CMake function argument parser.
* Process generator expressions in the INCLUDE_DIRECTORIES property.Stephen Kelly2012-09-281-0/+4
| | | | | This use of generator expressions, like all others to come which operate on target properties, must initalize the dag checker.
* Extract and use the INCLUDE_DIRECTORIES target properties.Stephen Kelly2012-02-221-0/+10
Eliminate callers of cmMakefile::GetIncludeDirectories. All callers of GetIncludeDirectories should go through the local generator object. Only the local generator calls cmTarget::GetIncludeDirectories directly.