gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
60 stars 50 forks source link

ZZIP_LIBLATEST: create symlinks only if target is missing #138

Closed aeolio closed 1 year ago

aeolio commented 2 years ago

zzip/CMakeList.txt uses custom build targets to create symlinks from (normaly versioned) build results to unversioned file names. These targets are executed unconditionally, every time a build is started, regardless of the existence of the target.

Debug builds generate unversioned libraries. The build targets therefore overwrite existing files with recursive links.

Create custom targets depending on the target file plus custom build commands containing the symlink creation, thereby ensuring that symlinks are only created if the link target is missing.

gdraheim commented 1 year ago

Interesting solution, thanks a lot.