Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,106
    • Issues 4,106
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !1264

IMPORTED INTERFACE libraries now behave as normal INTERFACE library / IMPORTED GLOBAL libraries can now be ALIASed.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Deniz Bahadir requested to merge dbahadir/cmake:fix_17197 into master Sep 14, 2017
  • Overview 21
  • Commits 4
  • Pipelines 9
  • Changes 40

Changes introduced by this merge-request:

  • The commands target_compile_definitions, target_compile_features, target_compile_options, target_include_directories, target_link_libraries and target_sources can now be used with IMPORTED libraries.
  • ALIASing an IMPORTED library is now possible, too, as long as the aliased IMPORTED target is globally visible (aka was created with option GLOBAL).

Thereby, there is no longer any difference in behavior between normal INTERFACE targets and IMPORTED INTERFACE targets. Only the behavior of IMPORTED INTERFACE targets that are non-GLOBAL differs slightly: they still cannot be aliased.

This merge-request fixes #15689 (closed), #15569 (closed) and #17197 (closed).
Topic-rename: generalize-importedtargets-behavior

Edited Oct 25, 2017 by Deniz Bahadir
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_17197