* don't assume includedir

This change syncs the public header include install location with what gets written into pkgconfig file.
This commit is contained in:
DeX77
2021-10-15 11:12:39 +02:00
committed by GitHub
parent 382f9462c2
commit d6d4b71d7d

View 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)