GH-2103 Make /usr/local the default prefix for lin-system

/usr/local is a sane default since /usr is meant to be used by packages.
This commit is contained in:
Samuel Rakitničan 2018-01-18 12:09:03 +01:00
parent e8336babad
commit 0942867ecc

View File

@ -393,10 +393,6 @@ elseif(MultiMC_LAYOUT_REAL STREQUAL "lin-nodeps")
install(PROGRAMS package/linux/MultiMC DESTINATION ${BUNDLE_DEST_DIR}) install(PROGRAMS package/linux/MultiMC DESTINATION ${BUNDLE_DEST_DIR})
elseif(MultiMC_LAYOUT_REAL STREQUAL "lin-system") elseif(MultiMC_LAYOUT_REAL STREQUAL "lin-system")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Base directory for executables and libraries" FORCE)
endif()
set(MultiMC_BINARY_DEST_DIR "bin" CACHE STRING "Path to the binary directory") set(MultiMC_BINARY_DEST_DIR "bin" CACHE STRING "Path to the binary directory")
set(MultiMC_LIBRARY_DEST_DIR "lib${LIB_SUFFIX}" CACHE STRING "Path to the library directory") set(MultiMC_LIBRARY_DEST_DIR "lib${LIB_SUFFIX}" CACHE STRING "Path to the library directory")
set(MultiMC_SHARE_DEST_DIR "share/multimc" CACHE STRING "Path to the shared data directory") set(MultiMC_SHARE_DEST_DIR "share/multimc" CACHE STRING "Path to the shared data directory")