--- CMakeLists.txt 2018-12-20 07:28:50.000000000 +0000 +++ CMakeLists.txt.new 2019-03-10 09:36:06.889845448 +0000 @@ -89,9 +89,10 @@ if (NOT GRAPHITE2_NFILEFACE) endif() set(version 3.0.1) -set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) +set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) +set(bindir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}) set(includedir ${CMAKE_INSTALL_PREFIX}/include) configure_file(graphite2.pc.in graphite2.pc) -install(FILES ${PROJECT_BINARY_DIR}/graphite2.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig) +install(FILES ${PROJECT_BINARY_DIR}/graphite2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) --- src/CMakeLists.txt.orig 2013-12-18 02:11:19.630231082 +0000 +++ src/CMakeLists.txt 2013-12-18 02:22:20.323562493 +0000 @@ -148,5 +148,5 @@ endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") -install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin) +install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_)