Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cmake/FindNodejs.cmake to find more libnode versions #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bbannier
Copy link
Member

We would previously hardcode a list of Node module versions which we would "support" and find automatically; we however did and do not really vet these versions. This meant that we were preptually unable to find newer Node library versions until we patch the CMake module.

With this patch we automatically populate a list of current and future Node module versions we recognize. Compilation might still fail down the line, but this blanket discovery should simplify working with newer Node versions nevertheless.

We would previously hardcode a list of Node module versions which we
would "support" and find automatically; we however did and do not really
vet these versions. This meant that we were preptually unable to find
newer Node library versions until we patch the CMake module.

With this patch we automatically populate a list of current and future
Node module versions we recognize. Compilation might still fail down the
line, but this blanket discovery should simplify working with newer Node
versions nevertheless.
@bbannier bbannier self-assigned this Nov 15, 2024
@bbannier bbannier marked this pull request as ready for review November 15, 2024 10:43
# Since we do not explicitly vet particularly Node releases we automatically
# enable this code to find Node libraries with module versions in a certain
# range.
foreach(NODE_MODULE_VERSION 83 150)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice, thanks! I think the nightly build as some baseline failures, but I'll pick this up once I've sorted that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I am assigning the PR to you for tracking.

@bbannier bbannier assigned awelzel and unassigned bbannier Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants