Skip to content

CMake: Find package with version ranges are ignored for Zephyr SDK #80200

Closed
@tejlmand

Description

@tejlmand

Describe the bug

CMake find_package() supports the use of ranges since CMake 3.19, however using version ranges together with Zephyr SDK are ignored.

For example the following line: find_package(Zephyr-sdk 0.16...<0.17) results in Zephyr SDK v0.17 being selected on a system where both Zephyr SDK 0.16.9 and 0.17.0 are installed.

Expected behavior
Zephyr SDK 0.16.9 being selected.

Impact
Unexpected Zephyr SDK selected.

Logs and console output

Environment (please complete the following information):

  • OS: Linux
  • Toolchain : Zephyr SDK 0.16.9, 0.17.0

Additional context
N/A

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions