From d6d4b71d7dd521d83102750f23f29de90123f803 Mon Sep 17 00:00:00 2001 From: DeX77 Date: Fri, 15 Oct 2021 11:12:39 +0200 Subject: [PATCH] * don't assume includedir This change syncs the public header include install location with what gets written into pkgconfig file. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e66ea4b..23c6eef1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -531,4 +531,5 @@ if (UNIX OR MINGW OR CYGWIN) install(FILES ${PROJECT_BINARY_DIR}/json-c.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}") endif () -install(FILES ${JSON_C_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/json-c) +install(FILES ${JSON_C_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/json-c) + -- 2.39.5