-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Update src/CMakeLists.txt: Fix CPack Error when building with latest vcpkg #10098
Conversation
Added set(CPACK_COMPONENTS_ALL "") to prevent cmake from causing an XML fragments issue later on in CPack.
Thanks! Could you please test your change also with this branch: #10088 Don't forget to set |
@phoerious While testing this on the branch #10088, I noticed that even when specifying my vcpkg.cmake, it would still have to rebuild all dependencies in the build directory, rather than grabbing the already built ones from my vcpkg directory. Was this an intentional feature? |
Ideally, the already-installed binaries should just be copied over if the version dependencies match. EDIT: See here: https://learn.microsoft.com/en-gb/vcpkg/users/binarycaching |
@phoerious I just tested my change on the branch #10088 and building was successful 😊 |
Added set(CPACK_COMPONENTS_ALL "") to prevent cmake from causing an XML fragments issue later on in CPack.
Added set(CPACK_COMPONENTS_ALL "") to prevent cmake from causing an XML fragments issue later on in CPack.
Added
set(CPACK_COMPONENTS_ALL "")
to prevent cmake from adding the lineset(CPACK_COMPONENTS_ALL "Runtime;Unspecified")
which will cause the error (CPack Error: Some XML patch fragments did not have matching IDs: 'CM_CP_KeePassXC.exe' ) later on. As mentioned by the linked issue, this is an error that happens when building with the latest version of vcpkg.Specifically we want to prevent the circled elements from being appended to the generated WiX XML files.
Fixes #10097
Type of change