Skip to content

GitLab

  • Menu
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 3,808
    • Issues 3,808
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & 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
  • CMake
  • CMakeCMake
  • Issues
  • #19445

Closed
Open
Created Jul 02, 2019 by Kyle Edwards@kyle.edwardsMaintainer

Getting/setting properties on alias targets

The following does not currently do what we want:

add_library(foo foo.c)
add_library(foo::foo ALIAS foo)
set_property(TARGET foo::foo PROPERTY LIBRARY_OUTPUT_PATH lib)

We expect this to set LIBRARY_OUTPUT_PATH on foo, but it instead tries to set it on foo::foo.

TBD: does this silently set the property on foo::foo which doesn't get used, or does it error out?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking