Last active
October 28, 2017 06:43
-
-
Save weshouman/58691a4e299d59e78f72 to your computer and use it in GitHub Desktop.
make install in a custom directory #setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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