summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/alias_targets
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'imported-local-target-alias'Brad King2020-07-131-0/+7
|\ | | | | | | | | | | | | 7b0f6508a0 ALIAS targets: Non-global aliases must be propagated to sub-directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5002
| * ALIAS targets: Non-global aliases must be propagated to sub-directoriesMarc Chevrier2020-07-111-0/+7
| | | | | | | | Fixes: #20942
* | Tests/RunCMake: Update cmake_minimum_required versionsBrad King2020-06-182-2/+2
|/ | | | Use 3.3 or 2.8.12 where possible.
* add_library/add_executable: allow local alias to imported targetsMarc Chevrier2020-06-028-16/+107
| | | | Fixes: #20641
* ALIAS target: cannot overwrite an existing targetMarc Chevrier2020-05-286-0/+61
| | | | Fixes: #19616
* add_library: Restore error on alias of non-global imported targetBrad King2018-05-101-2/+8
| | | | | | | | | | | In commit v3.11.0-rc1~433^2~1 (Add support for IMPORTED GLOBAL targets to be aliased, 2017-09-14) we accidentally dropped the error on calling `add_library` to alias an imported target that is not globally visible. The `add_executable` command's equivalent check was properly updated. Restore the check in `add_library` with the same update. Also fix the test case accordingly. Fixes: #17982
* Add support for IMPORTED GLOBAL targets to be aliasedDeniz Bahadir2017-10-265-6/+99
| | | | | Issue: #15569 Issue: #17197
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-1/+1
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Cygwin: Avoid legacy warnings in RunCMake.* testsBrad King2013-08-131-1/+1
| | | | | | Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
* Add the ALIAS target concept for libraries and executables.Stephen Kelly2013-08-0257-0/+247
* The ALIAS name must match a validity regex. * Executables and libraries may be aliased. * An ALIAS acts immutable. It can not be used as the lhs of target_link_libraries or other commands. * An ALIAS can be used with add_custom_command, add_custom_target, and add_test in the same way regular targets can. * The target of an ALIAS can be retrieved with the ALIASED_TARGET target property. * An ALIAS does not appear in the generated buildsystem. It is kept separate from cmMakefile::Targets for that reason. * A target may have multiple aliases. * An ALIAS target may not itself have an alias. * An IMPORTED target may not have an alias. * An ALIAS may not be exported or imported.