Blob Blame History Raw
--- mlpack-2.2.5/CMakeLists.txt	2017-09-13 15:09:09.800425958 -0400
+++ mlpack-2.2.5/CMakeLists.txt.new	2017-09-15 13:42:11.664531890 -0400
@@ -175,6 +175,12 @@
   add_definitions(-DARMA_EXTRA_DEBUG)
 endif()
 
+if (LIBDIR)
+  message(STATUS "Setting libdir to ${LIBDIR}.")
+else ()
+  set(LIBDIR "lib")
+endif ()
+
 # Now, find the libraries we need to compile against.  Several variables can be
 # set to manually specify the directory in which each of these libraries
 # resides.
@@ -568,5 +574,5 @@
 
   # Do we need a different directory?
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib/pkgconfig/mlpack.pc
-      DESTINATION lib/pkgconfig/)
+      DESTINATION ${LIBDIR}/pkgconfig/)
 endif ()
--- mlpack-2.2.5/src/mlpack/CMakeLists.txt	2017-08-25 20:08:44.000000000 -0400
+++ mlpack-2.2.5/src/mlpack/CMakeLists.txt.new	2017-09-13 15:07:53.458490417 -0400
@@ -90,7 +90,7 @@
 # be entered...
 install(TARGETS mlpack
   RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib)
+  LIBRARY DESTINATION ${LIBDIR}
+  ARCHIVE DESTINATION ${LIBDIR})
 
 add_dependencies(mlpack mlpack_headers)