the_Foundation [main]

CMake: Fix install paths

=> fe14b43d51f15aa6307f026e1b7193f2d5cc0cb9

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92b93f6..2b5898a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,7 @@ project (the_Foundation VERSION 1.0.0 LANGUAGES C)
 include (CheckIncludeFile)
 include (CheckCSourceCompiles)
 include (CheckFunctionExists)
+include (GNUInstallDirs)
 include (TestBigEndian)
 include (CheckSSE.cmake)
 find_package (Git)
@@ -355,18 +356,20 @@ tfdn_link_depends (${TFDN_LIB} ${TFDN_DEPENDS_LINK_MODE})
 if (TFDN_ENABLE_INSTALL)
     install (TARGETS ${TFDN_LIB}
         EXPORT ${TFDN_LIB}
-        DESTINATION lib
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}
     )
     install (EXPORT ${TFDN_LIB}
-        DESTINATION lib/cmake/${TFDN_LIB}
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${TFDN_LIB}
         NAMESPACE the_Foundation::
         FILE ${TFDN_LIB}Config.cmake
     )
     install (DIRECTORY include/the_Foundation
-        DESTINATION include
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
         FILES_MATCHING PATTERN "*.h"
     )
-    install (FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION include/the_Foundation)
+    install (FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
+        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/the_Foundation
+    )
 endif ()
 
 #----------------------------------------------------------------------------------------
Proxy Information
Original URL
gemini://git.skyjake.fi/the_Foundation/main/cdiff/fe14b43d51f15aa6307f026e1b7193f2d5cc0cb9
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
28.868445 milliseconds
Gemini-to-HTML Time
0.37146 milliseconds

This content has been proxied by September (3851b).