Skip to content

Commit

Permalink
Install headers in correct path when using CMake
Browse files Browse the repository at this point in the history
pkg-config provides users with the include path `../include/r3`
while CMake installs the headers directly under `../include/`.
This corrects the installation path to match the generated r3.pc
and to get the same result as when using autoconf.
  • Loading branch information
bjosv committed Nov 3, 2023
1 parent c105117 commit 9887545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install(
include/r3_json.h
include/str_array.h
include/r3.hpp
DESTINATION include)
DESTINATION include/r3)

# Configure substitutions for r3.pc. The variables set here must match the
# @<values>@ in r3.pc.in.
Expand Down

0 comments on commit 9887545

Please sign in to comment.