--- mlpack-2.0.1/CMakeLists.txt 2016-02-04 17:40:47.000000000 -0500
+++ mlpack-2.0.1/CMakeLists.txt.new 2016-02-25 10:28:24.838953428 -0500
@@ -100,6 +100,12 @@
add_definitions(-DARMA_EXTRA_DEBUG)
endif(ARMA_EXTRA_DEBUG)
+if(LIBDIR)
+ message(STATUS "Setting library install directory to ${LIBDIR}.")
+else(LIBDIR)
+ set(LIBDIR "lib") # Default.
+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.
--- mlpack-2.0.1/src/mlpack/CMakeLists.txt 2016-02-04 17:40:47.000000000 -0500
+++ mlpack-2.0.1/src/mlpack/CMakeLists.txt.new 2016-02-25 10:29:07.231238207 -0500
@@ -75,8 +75,8 @@
# 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)