]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
* don't assume includedir 729/head
authorDeX77 <dex@dragonslave.de>
Fri, 15 Oct 2021 09:12:39 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 09:12:39 +0000 (11:12 +0200)
This change syncs the public header include install location with what gets written into pkgconfig file.

CMakeLists.txt

index 8e66ea4b9788c1a8c06804b9c6012a005d5712fa..23c6eef131b4d42b039d43494f57e18910a3ea16 100644 (file)
@@ -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)
+