summaryrefslogtreecommitdiff
blob: ae21f625c44ba6a66289a84313ece1e17fed256c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- LibRaw-0.16.0-Alpha2/CMakeLists.txt
+++ LibRaw-0.16.0-Alpha2/CMakeLists.txt
@@ -565,14 +565,14 @@
 # Install Shared binary files.
 INSTALL(TARGETS raw
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib
-        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
        )
 
 INSTALL(TARGETS raw_r
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib
-        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
        )
 
 # Install find cmake script to the system for client applications.
@@ -626,8 +626,8 @@
 
     INSTALL(TARGETS ${_target}
             RUNTIME DESTINATION bin
-            LIBRARY DESTINATION lib
-            ARCHIVE DESTINATION lib)
+            LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+            ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
 
 ENDMACRO(LIBRAW_BUILD_SAMPLES)