Repository navigation
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
- Extend DLL copying logic to handle Arrow/Parquet and transitive dependencies - Add support for abseil, aws-cpp-sdk, brotli, crc32c, and other Arrow deps - Use glob patterns to be robust to future version changes - Mirror approach from PR #8244 for other dependencies - Copy DLLs to output, test, and doc directories when WITH_PARQUET is enabled Co-authored-by: poshul <[email protected]>
… search - Add Arrow DLL directory to RUNTIME_DEPENDENCY_SET search paths for Windows - Ensures CMake can find and package all Arrow/Parquet transitive dependencies - Complements the build-time DLL copying in add_library_macros.cmake Co-authored-by: poshul <[email protected]>
|
I think this should be fixed upstream in vcpkg if their CMake is broken again. |
|
OR: since we are using vcpkg, just disable non-required features, and require static linking on Windows. |
|
I would be interested how messed up their CMake config is again.. If someone can upload it. |
|
Wait, who says that DLLs are not copied? NSIS never complains about missing DLLs. It copies DLLs via a wildcard. It must be missing something that it is specifically expecting. |
|
|
Ok! That means that the CMake config is probably correct but CMake is not finding those files. install Runtime Dependencies usually looks in the same path of the target, system32 and everything we specify in DIRECTORIES. I assume something is missing for DIRECTORIES (e.g. all the CMAKE_PREFIX_PATH entries concatenated with their bin folders) Here: OpenMS/cmake/package_general.cmake Line 90 in 3ae4559 |
|
Yeah, actually, if we make sure the files are also always copied next to the OpenMS.dll it should be fine. |
|
But if the code in/around #8244 does not copy everything, it might really mean that CMake config is messed up. Impossible to see without a Windows PC. |
|
@copilot Closer, but now this fails with: |
Remove copying of Arrow/Parquet DLLs to OpenMS output directory. This was causing "Multiple conflicting paths found" errors during packaging because CMake's install(RUNTIME_DEPENDENCY_SET) would find the same DLLs in both the original location and the copied location. DLLs are still copied to test and doc folders for build-time executables. For packaging, install(RUNTIME_DEPENDENCY_SET) now finds them in their original location via the DIRECTORIES parameter in package_general.cmake. Co-authored-by: poshul <[email protected]>
... Fixed in commit df0ddc1 (amended). The issue was that copying DLLs to the output folder caused CMake's The solution: Only copy DLLs to test and doc folders for build-time use. For packaging, |
|
This looks like it's currently choking on long paths. |
|
nonono, this will be a nightmare to maintain. Either the automatic resolution works or we build it statically. |
|
Please someone just test this on windows. |
Summary of Final Solution
Build-Time (cmake/add_library_macros.cmake)
Packaging-Time (cmake/package_general.cmake)
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.