Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • O Open VDS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • Domain Data Management Services
  • Seismic
  • Open VDS
  • Merge requests
  • !734

Add pkg-config configuration file generation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alexander Jaust requested to merge feature/alexander.jaust/generate-pkg-config-file into master Oct 27, 2022
  • Overview 1
  • Commits 2
  • Pipelines 6
  • Changes 2

This merge request adds a pkg-config template (CMake/openvds.pc.in) and extends the CMake configuration such that the file is populated with appropriate information like the installation prefix and the OpenVDS version number. The configuration resulting file (openvds.pc is installed into $CMAKE_INSTALL_PREFIX/lib/pkgconfig/. Depending on the installation prefix one might have to extend the environment variable PKG_CONFIG_PATH to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig/ such that pkg-config file can be found by the system.

This make ingestion of OpenVDS easier for projects that do not use CMake as build system and have pkg-config available for obtaining build flags. One example would be projects using Go and its build system. Go has explicit support for pkg-config in the CGO package to obtain the needed flags for compiling and linking of applications to other packages. Would this be something one could add?

I did test this on my machine (Arm64, Mac OSX 12) and it worked nicely.

Main questions:

  • Can the configure_file command stay at this location in the CMakeLists.txt?
  • Should we document this feature somewhere (README, somewhere else, changelog)?

Closes #150 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/alexander.jaust/generate-pkg-config-file