From 9887545ab0fbdfc868c4eb3d7565b6acdd94617c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Fri, 3 Nov 2023 09:31:39 +0100 Subject: [PATCH] Install headers in correct path when using CMake 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e31a0a..db112ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 # @@ in r3.pc.in.