From: DeX77 Date: Fri, 15 Oct 2021 09:12:39 +0000 (+0200) Subject: * don't assume includedir X-Git-Tag: json-c-0.16-20220414~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F729%2Fhead;p=thirdparty%2Fjson-c.git * don't assume includedir This change syncs the public header include install location with what gets written into pkgconfig file. --- 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) +