This MR adds changes to the sac-version-manager
script that among other things allows for generic symlink installation. This is particularly useful for the build system, which previously relied on the inbuilt mechanism to create symlinks. One critical problem of this was that we needed to create two sets of links, one to the postfixed binaries, and another without the postfix. The build system for normal builds did not actually support the later, while the CPack build mechanism did, but with caveats (race-conditions and sometimes incorrect links depending on the cached path variables).
As such, we drop our use of cmake -E
for creating symlinks via the bin-symlinks
target and instead use install(CODE ...)
to call sac2c-version-manager directly to create he symlinks when calling make install
. This removes a few targets related to the previous method of symlinking and completely hides it within the install target.
Additionally, we have extended the documentation of the sac-version-manager
and added a few small extracts (such as a concept of version --- we are now at 0.2, wow!)
Finally, we have added a convenience wrapper script around sac-version-manager
that allows a user to generate symlinks for their current build directory. This include in the generated scripts
directory.