summaryrefslogtreecommitdiff
blob: e45dec9f3742c00de4b2b57d61489cb34007a8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec806fe..d6136a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,10 +136,12 @@ if(NOT MSVC)
     target_link_libraries(arb m)
 endif()
 
+include(GNUInstallDirs)
+
 install(TARGETS arb
-            RUNTIME DESTINATION bin
-            ARCHIVE DESTINATION lib
-            LIBRARY DESTINATION lib
+            RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
+            ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
+            LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
         )
 
 foreach (FOLDER ${FOLDERS})