cmake -E tar inconsistent behaviour on Windows and Linux
I have a target in one project that aims to build a resource archive in the build folder, by zipping a bunch of files from the source tree using the "cmake -E tar" utility. On Windows this works perfectly, however in Linux the current code fails as it tries to create an archive in a folder that does not exist. I have attached a minimum code example that works on Windows and breaks on Linux. The issue is not extremely critical as I will resort to creating the missing folder myself during configuration, however that different behavior on both platforms is very annoying.
Edit: interestingly the code works as it is on macOS (Xcode generator) as well.
Edited by audiovention