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

Fixes PreventInSourceBuilds.cmake to work with add_subdirectory #1383

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

morbo84
Copy link
Contributor

@morbo84 morbo84 commented Jan 24, 2022

These changes, while still preventing in-source builds for the jsoncpp project, allow in-source builds for other projects possibly importing jsoncpp via CMake's add_subdirectory(). Without these changes, the AssureOutOfSourceBuilds will check for the src and build dirs of the root project, not necessarily of the jsoncpp project.

@mkruskal-google
Copy link

Is there anything blocking this PR? We're hitting this issue in https://github.com/protocolbuffers/protobuf and had to downgrade to 1.9.4 because of it

@baylesj baylesj merged commit 76ff1db into open-source-parsers:master Sep 11, 2024
10 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.

3 participants