Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active October 28, 2017 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/58691a4e299d59e78f72 to your computer and use it in GitHub Desktop.
Save weshouman/58691a4e299d59e78f72 to your computer and use it in GitHub Desktop.
make install in a custom directory #setup
use one of the following ways
(1) make install DESTDIR="/some/absolute/path"
(2) make DESTDIR="/some/absolute/path" install
(3) DESTDIR="/some/absolute/path" make install
(4) export DESTDIR="/some/absolute/path
make install
till now i've discovered 2 ways, either changing the CMAKE_INSTALL_PREFIX or making/changing the DESTDIR env var
not sure what's the difference is
(those ways were excerpted from http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake.27s_.22make_install.22_support_DESTDIR.3F )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment