summaryrefslogtreecommitdiff
blob: acd635c550b9d80e48582810ae5f4c8e5fcef2d2 (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
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5da3b7..90a8b77 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -210,8 +210,7 @@ if (OIS_BUILD_DEMOS)
 
 endif()
 
-set(LIB_INSTALL_DIR "lib")
-set(OIS_LIB_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR})
+set(OIS_LIB_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
 
 file(GLOB PUBLIC_HEADERS "${CMAKE_SOURCE_DIR}/includes/*.h")
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 90a8b77..3c1fe95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,9 +219,9 @@ install(FILES ${PUBLIC_HEADERS}
 )
 
 install(TARGETS OIS
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib
+  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
   FRAMEWORK DESTINATION Library/Frameworks
 )