Skip to content

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.

niosHD added 2 commits April 6, 2016 09:33
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