You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using CMake to build a project with Boost as a dependency via FetchContent, the extraction of the tar.gz archive fails on Windows. This issue appears to be related to Windows handling of empty pathnames in tar archives. Switching to the zip archive resolves the issue.
Steps to Reproduce
Use the following FetchContent_Declare in a CMake project:
Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Version: 3.31
Compiler: MSVC 19.42.34435.0
Boost Version: 1.81.0
Additional Notes
This issue seems specific to the tar.gz archive format on Windows. Similar setups on Linux and macOS work correctly with the same tar.gz archive. A potential solution could be to provide platform-specific recommendations for the archive format or improve the handling of tar archives in CMake.
The text was updated successfully, but these errors were encountered:
nobShinjo
added a commit
to nobShinjo/CoACD
that referenced
this issue
Dec 2, 2024
- Updated FetchContent_Declare to use platform-specific archive formats.
- On Windows, switched to the zip archive to avoid extraction errors caused by empty pathnames in tar.gz files.
- For non-Windows platforms, the tar.gz archive remains the default.
- Ensures compatibility and smooth extraction across all platforms.
Related Issue: SarahWeiii#60
- Updated FetchContent_Declare to use platform-specific archive formats.
- On Windows, switched to the zip archive to avoid extraction errors caused by empty pathnames in tar.gz files.
- For non-Windows platforms, the tar.gz archive remains the default.
- Ensures compatibility and smooth extraction across all platforms.
Related Issue: #60
Description
When using CMake to build a project with Boost as a dependency via FetchContent, the extraction of the tar.gz archive fails on Windows. This issue appears to be related to Windows handling of empty pathnames in tar archives. Switching to the zip archive resolves the issue.
Steps to Reproduce
Use the following FetchContent_Declare in a CMake project:
cmake\boost.cmake
Run CMake configuration on a Windows system
Observe the extraction error.
Observed Behavior
CMake fails during the extraction step with the following error:
Expected Behavior
The tar.gz archive should extract without issues.
Workaround
Switching to the zip archive of Boost resolves the problem:
Environment
Additional Notes
This issue seems specific to the tar.gz archive format on Windows. Similar setups on Linux and macOS work correctly with the same tar.gz archive. A potential solution could be to provide platform-specific recommendations for the archive format or improve the handling of tar archives in CMake.
The text was updated successfully, but these errors were encountered: