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

Minor packaging improvements #299

Merged
merged 2 commits into from
Apr 7, 2016

Conversation

niosHD
Copy link
Contributor

@niosHD niosHD commented Apr 6, 2016

This PR makes the install location for generated cmake files configurable. (requested in this comment in #267).

Details and an example can be found in the commit message of dcbb6b1.

By default the cmake files are installed to "<prefix>/lib/cmake/cppformat".
This can now be customized using the `FMT_CMAKE_DIR` cache variable.
Valid paths are documented in the cmake manual [1].

e.g., install the cmake files to "<prefix>/share/cmake/cppformat"
```
cmake -DFMT_CMAKE_DIR=share/cmake/cppformat <path-to-source>
```

Tip: Try `make package` to examine the result.

[1] https://cmake.org/cmake/help/v3.0/command/find_package.html
This makes sure that the current build directory is not packaged
with the regular source tree when `make package_source` is used.
@vitaut vitaut merged commit d8e246d into fmtlib:master Apr 7, 2016
@vitaut
Copy link
Contributor

vitaut commented Apr 7, 2016

Nice, thanks @niosHD!

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.

2 participants