Description: Include GNUInstallDirs for Multi-Ach paths.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/bcdev/epr-api/pull/24
Applied-Upstream: https://github.com/bcdev/epr-api/commit/ecfb8b16b03c78f2189172bc22b4ff25b1c24b8d

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,6 @@
 # Copyright (c) 2013-2026 Antonio Valentino <antonio.valentino@tiscali.it>
 
+include(GNUInstallDirs)
 
 # sources
 set(SOURCES epr_api.c
@@ -74,7 +75,7 @@ endif(BUILD_TESTS)
 
 # install
 install(FILES epr_api.h epr_ptrarray.h DESTINATION include COMPONENT lib)
-install(TARGETS epr_api DESTINATION lib COMPONENT dev)
+install(TARGETS epr_api DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev)
 if(BUILD_STATIC_LIB)
-    install(TARGETS epr_api_static ARCHIVE DESTINATION lib COMPONENT dev)
+    install(TARGETS epr_api_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev)
 endif(BUILD_STATIC_LIB)
