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

Configure namespace.h into cmake binary dir instead of source #439

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

Conversation

Atlante45
Copy link

When calling configure_file() on namespace.h.in, cmake will create a temporary file at the target location called namespace.h.tmp and when done generating move it to namespace.h

This causes an issue when building multiple release types at the same time. They will both generate the same .tmp file and overwrite each other. The first that completes will move the shared file causing the other instance to fail with the error No such file or directory

This is a proposed solution that generates the namespace header in the binary directory as intended by configure_file and then makes sure all relevant steps load the header from the appropriate directory

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