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

feat: Add definition to check if generated CMake is building the code #466

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Jan 8, 2025

In our generated NitroImageOnLoad.cpp file we now check if the BUILDING_NITROIMAGE_WITH_GENERATED_CMAKE_PROJECT flag is set.

This flag is only set in our generated CMakeLists.txt project, so if it isn't set then there is some other CMakeLists.txt project that is trying to build our nitro module - in this case we #error!

The reason for this is #464 - I have a suspicion that the user's nitro module is not being built by him, but by the Codegen CMakeLists.txt project which doesn't set things properly like our CMake does.

Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Jan 8, 2025 9:13am

@mrousavy mrousavy merged commit bf19f7d into main Jan 8, 2025
15 checks passed
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.

1 participant