When packaging files and folders outside of the current folder, CMake creates invalid zip files on Windows
Related to #20238 (closed).
Files and folders in the current directory now work on Windows, because './' is removed from the paths.
But other paths do not work. For example, I tried the following with cmake-3.23.0-rc3-windows-x86_64:
Command line | Name in archive | Valid in Windows? |
---|---|---|
D:\Temp>cmake -E tar cf a.zip --format=zip D:\Temp\try | try/ | Yes |
D:\Temp>cmake -E tar cf a.zip --format=zip D:\Temp2\try | ../Temp2/try/ | No |