microsoft / microsoft/vcpkg

[open62541] find_package(open62541) call fails on vanilla Windows system

Open
#36,320 6 comments 0 reactions 1 assignee Claimed by @MonicaLiu0311 View on GitHub
category:port-feature
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

### Is your feature request related to a problem? Please describe.

The `open62541Config.cmake` contains a call to `find_dependency(Python3 COMPONENTS Interpreter REQUIRED) ` (see https://github.com/open62541/open62541/blob/a6a9c7b7aacbb33b0d8a0b9ff7b6382352e3ef52/tools/cmake/open62541Config.cmake.in#L9C1-L9C58).

That means that a downstream project may fail at the `find_package(open62541)` if run on a system without Python, for example a vanilla Windows system.

### Proposed solution

I am not sure if this problem can be solved at the vcpkg level. On other package manager you would add some kind of runtime or dev-runtime dependency on Python, but I do not think we can do that anything like that in vcpkg. Perhaps a mitigation could be to just document this in usage file?

### Describe alternatives you've considered

.

### Additional context

See https://github.com/microsoft/vcpkg/pull/36242#issuecomment-1905637894 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.