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,105
    • Issues 4,105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • 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
  • Issues
  • #21580
Closed
Open
Issue created Dec 09, 2020 by Steven A White@StevenAWhiteContributor

cmake-gui: set_property INSTALL scope not cleared across projects

I have noticed sense updating to 3.19.1 that if I use the "Where to build the binaries" drop down to switch between cmake projects then the GUI and underlying cmake will some how run cmake files from the previous project.

For instance if I build BioGears 7.4.X and then switch to a second project with out closing the GUI and click compile generate I will receive the following errors. The error seem to revolve around Generator statements which refer to TARGET names.

CMake Error at D:/remotes/sed-stash/core/projects/cli/CMakeLists.txt:125 (set_property):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:bg-cli>

  No target "bg-cli"

CMake Error at D:/remotes/sed-stash/core/projects/cli/CMakeLists.txt:79 (set_property):
  Error evaluating generator expression:

    $<TARGET_FILE_NAME:bg-scenario>

  No target "bg-scenario"
screenshots

image image

I don't have a good feel for what is going on, but if given some direction I can help chase this down.

Recreate: Configure/Generate in CMakeGUI a project which refers to its own targets using :: notati0n which will be differed until generation. Then switch to a second project and configure/generate it in the same GUI window on WINDOWS 10

Edited Dec 11, 2020 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking