--- mlpack-1.0.3/CMakeLists.txt 2012-08-15 13:41:43.000000000 -0400
+++ mlpack-1.0.3/CMakeLists.txt.new 2013-01-01 13:56:31.569887094 -0500
@@ -7,6 +7,12 @@
option(PROFILE "Compile with profiling information" OFF)
option(ARMA_EXTRA_DEBUG "Compile with extra Armadillo debugging symbols." OFF)
+if(LIBDIR)
+ message(STATUS "Setting library install directory to ${LIBDIR}.")
+else(LIBDIR)
+ set(LIBDIR "lib") # Default.
+endif()
+
# This is as of yet unused.
#option(PGO "Use profile-guided optimization if not a debug build" ON)
--- mlpack-1.0.3/src/mlpack/CMakeLists.txt 2012-03-13 14:16:40.000000000 -0400
+++ mlpack-1.0.3/src/mlpack/CMakeLists.txt.new 2013-01-01 13:55:59.376413429 -0500
@@ -62,8 +62,8 @@
# be entered...
install(TARGETS mlpack
RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib)
+ LIBRARY DESTINATION ${LIBDIR}
+ ARCHIVE DESTINATION ${LIBDIR})
# For 'make test'.
add_custom_target(test