Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include version information in CMake and the program #33

Merged
merged 3 commits into from
Oct 29, 2020

Conversation

imciner2
Copy link
Member

This PR adds version information to the generated CMake files and also a new header that contains the version string (as three parts). This allows software using the CMake find mechanism to know the version of the library and ensure it has the correct version. The header also allows the consuming programs to find the version of the library they are linked against.

An additional change made in this PR is to ensure the CMake find files are installed in the same directory as the library (e.g. lib64 if desired).

Fixes #32

The CMake files should be installed in the same lib directory as the
main library for consistency. Also, this generates a version file
to allow CMake to detect the version when searching for the library.
These defines allow software that use QDLDL to get its version inside
the code.
@CLAassistant
Copy link

CLAassistant commented Aug 27, 2020

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Aug 27, 2020

Pull Request Test Coverage Report for Build 169

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 168: 0.0%
Covered Lines: 87
Relevant Lines: 87

💛 - Coveralls

@imciner2
Copy link
Member Author

Ping @goulart-paul or @bstellato. Either of you free to take a look at this?

@goulart-paul
Copy link
Collaborator

Apologies for delay. It seems good to me.

@gbanjac gbanjac merged commit a00d500 into osqp:master Oct 29, 2020
@imciner2 imciner2 deleted the im/cmakefix branch October 29, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[openSUSE] How to move file from /usr/lib/ to /usr/lib64?
5 participants