-
Notifications
You must be signed in to change notification settings - Fork 2.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
DLLs missing when building Git using CMake #2970
Comments
Maybe we have to imitate the approach outlined in the first response of https://stackoverflow.com/questions/44650008/cmake-install-third-party-dll-dependency ? |
(i'm on my ipad here, so i'm doing this from memory.) Look in compat/win32/copy_dlls.bat it will copy them into those two directories. jeff |
We may need to imitate the add_custom_command(TARGET mylib POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy mylib.dll ${myapp_BINARY_DIR}/. ) |
(But I still hope that we find a way to do this in an |
Oooh, ooh, it might be controlled by |
When following the steps in #2915 (comment) to generate native
arm64
binaries for Git for Windows, all DLLs likeiconv-2.dll
andzlib1.dll
are missing in the folders with the generated binaries:When I copy the required DLLs manually from
C:\git-sdk-64\usr\src\git\compat\vcbuild\vcpkg\installed\arm64-windows\bin
, all is good:Same goes for
/arm64/libexec/git-core
- manually adding the DLLs works.Does anyone have an idea how we can copy the DLLs during the CMake build process as well? I assume this needs to happen in
INSTALL.vcxproj
somehow? Happy to provide a PR if someone could put me in the right direction 😊The text was updated successfully, but these errors were encountered: