c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

Install headers in correct path when using CMake #157

Closed bjosv closed 7 months ago

bjosv commented 8 months ago

pkg-config provides users with the include path ../include/r3 while CMake installs the headers directly under ../include/.

This PR corrects the installation path to match the generated r3.pc file and to get the same result as when using autoconf.

The example in the README also shows that the <r3/r3.h> path is expected.