Fix that installation of the libzstd.pc does not respect DESTDIR installations

This commit is contained in:
Taylor Braun-Jones 2020-04-09 17:14:34 -04:00
parent c22551b903
commit b674a1eec3

View File

@ -142,7 +142,7 @@ if (UNIX)
-P "${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.cmake"
COMMENT "Creating pkg-config file")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libzstd.pc" DESTINATION "${LIBDIR}/pkgconfig")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libzstd.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif ()
# install target