-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
CMake generating twice breaks on ImGui patches. #895
Comments
Set |
@mcourteaux It is a CPM bug and I have a PR that would at least document the issue... If you'd like, you could chime in to raise awareness for the issue. |
Added workaround in b46d8db. @lemire The behaviour I propose is functionally no different than the current upstream version (package checkout is done in each build directory), but is superior in that it always uses the same, correct code path (wrt to patches) instead of what appears to be one of two different implementations. Am I missing something here? |
I suspect not but I am only inviting people to raise up awareness of this issue in CPM. Your fix might very well be correct. |
When I have all the dependencies ready, and I run cmake the first time, it works, but then running it again breaks, because the patches are attempted to be applied again. I debugged this a little, but couldn't figure it all out. CPM and FetchContent are somewhere the blame. I found that:
_deps/imgui-subbuild/imgui-populate-prefix/src/imgui-populate-stamp/imgui-populate-patch
is successfully touched.-N
to allow for skipping already-applied patches.-N
doesn't work becausepatch
still exits with code 1, which CMake considers a failure.imgui-populate-patch
file that is created to mark the successful patching of files is seemingly not used to skip the patching next time.CMake output:
With
-N
added in CPM:The text was updated successfully, but these errors were encountered: