Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,193
    • Issues 3,193
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #21505

Closed
Open
Opened Nov 25, 2020 by danieleftodi@danieleftodi

FPHSA: find_package_check_version(): Cannot be used outside a 'Find Module'

Hi,

In Segger Embeded Studio, I'm getting this strange error:

CMake Error at /usr/local/Cellar/cmake/3.19.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:281 (message): find_package_check_version(): Cannot be used outside a 'Find Module'

Screenshot_2020-11-25_at_15.50.31

OS: macOS 10.15 Catalina
cmake: getting it via Homebrew ...

I have been playing with rolling back my local brew copy to the 3.18-branch ... and I'm not getting this error.

Also checked, and I saw that you quite recently did a lot of changes in the file: FindPackageHandleStandardArgs.cmake

with regards, Daniel.

Edited Nov 25, 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
3.19.2
Milestone
3.19.2 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#21505