Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !44

Extend sac2c-version-manager to support installing symlinks in a more generic way

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hans-Nikolai Viessmann requested to merge hans/sac2c:make-symlinks into develop May 02, 2018
  • Overview 32
  • Commits 7
  • Changes 4

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.

Edited May 03, 2018 by Hans-Nikolai Viessmann
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: make-symlinks