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

Utilize PROJECT_IS_TOP_LEVEL Variable #66

Closed
threeal opened this issue Jun 18, 2024 · 0 comments · Fixed by #67
Closed

Utilize PROJECT_IS_TOP_LEVEL Variable #66

threeal opened this issue Jun 18, 2024 · 0 comments · Fixed by #67
Assignees
Labels
Milestone

Comments

@threeal
Copy link
Owner

threeal commented Jun 18, 2024

This issue suggests utilizing the PROJECT_IS_TOP_LEVEL variable to determine if the current sample project is configured at the top level. This suggestion will replace the SUBPROJECT variable, which is currently used to determine if the project is configured as a subproject. However, utilizing PROJECT_IS_TOP_LEVEL requires a minimum of CMake version 3.21. It's a worthwhile tradeoff for shorter code in the root CMakeLists.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant