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,810
    • Issues 3,810
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • 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

An update will be applied May 24th, between 12PM and 1PM EDT (UTC -400). The site may be slow during that time.

  • CMake
  • CMakeCMake
  • Issues
  • #19596

Closed
Open
Created Aug 13, 2019 by Kyle Edwards@kyle.edwardsMaintainer

find_package(foo) does not create cache entry for foo_DIR

Let's say you have:

find_package(foo)

and you call CMake with -Dfoo_DIR=/path/to/foo. Later on, you run ccmake to try to remember where foo_DIR is... but foo_DIR does not show up in the menu. You have to manually edit CMakeCache.txt to find foo_DIR. This is confusing. Is there any way this can be fixed? Perhaps find_package() can change the type of foo_DIR to PATH?

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