We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From this line of code: https://github.com/cpp-best-practices/cmake_template/blob/d19d8921771ba582824948f0cc57f849a5c6efd8/ProjectOptions.cmake#L147C3-L147C98 One can get the impression that linking to myproject_options would be sufficient to enable unity build on a project. As far as I can tell that is not correct, the UNITY_BUILD property seems to not propagate to dependent projects. Or am I missing something here?
myproject_options
If one doesn't want set UNITY_BUILD globally, l guess one have to set the property for each target explicitly...
The text was updated successfully, but these errors were encountered:
UNITY_BUILD does not work in this way, see CMAKE_UNITY_BUILD
UNITY_BUILD
But in generell it should be used for libraries because it may reduce the build time dramatically.
see #63 for example
Sorry, something went wrong.
No branches or pull requests
From this line of code:
https://github.com/cpp-best-practices/cmake_template/blob/d19d8921771ba582824948f0cc57f849a5c6efd8/ProjectOptions.cmake#L147C3-L147C98
One can get the impression that linking to
myproject_options
would be sufficient to enable unity build on a project. As far as I can tell that is not correct, the UNITY_BUILD property seems to not propagate to dependent projects. Or am I missing something here?If one doesn't want set UNITY_BUILD globally, l guess one have to set the property for each target explicitly...
The text was updated successfully, but these errors were encountered: