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

Use CMake PROJECT_IS_TOP_LEVEL variable instead of project-name hack #809

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

alanxz
Copy link
Owner

@alanxz alanxz commented Jan 4, 2024

Use the PROJECT_IS_TOP_LEVEL variable to determine whether the root CMakeLists.txt file is the top-level file or a subproject of a larger project. This is more readable than the hack that it replaces.

Use the PROJECT_IS_TOP_LEVEL variable to determine whether the root
CMakeLists.txt file is the top-level file or a subproject of a larger
project. This is more readable than the hack that it replaces.

Signed-off-by: GitHub <noreply@github.com>
@alanxz alanxz merged commit 0e5eb5c into master Jan 4, 2024
14 checks passed
@alanxz alanxz deleted the shared_static2 branch January 4, 2024 02:02
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