diff options
author | Andrew Okin <forkk@forkk.net> | 2013-02-12 10:14:23 -0600 |
---|---|---|
committer | Andrew Okin <forkk@forkk.net> | 2013-02-12 10:14:23 -0600 |
commit | 5a4b2ad00026f89b05aaa7bcfedd244f948c4376 (patch) | |
tree | aaeda8307230949680f7863b666eaf0a4c95ad2a /dependencies.cmake.in | |
parent | b66be337fdb4d9fe023f1c4912573f99cca5437c (diff) | |
download | MultiMC-5a4b2ad00026f89b05aaa7bcfedd244f948c4376.tar MultiMC-5a4b2ad00026f89b05aaa7bcfedd244f948c4376.tar.gz MultiMC-5a4b2ad00026f89b05aaa7bcfedd244f948c4376.tar.lz MultiMC-5a4b2ad00026f89b05aaa7bcfedd244f948c4376.tar.xz MultiMC-5a4b2ad00026f89b05aaa7bcfedd244f948c4376.zip |
Linux packaging stuff.
Diffstat (limited to 'dependencies.cmake.in')
-rw-r--r-- | dependencies.cmake.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dependencies.cmake.in b/dependencies.cmake.in index 408bb811..9d4d1f63 100644 --- a/dependencies.cmake.in +++ b/dependencies.cmake.in @@ -4,6 +4,12 @@ message(STATUS "Running install script...") SET(Qt5_DIR @Qt5_DIR@) +IF(WIN32) +SET(LIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) +ELSE() +SET(LIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/lib) +ENDIF() + INCLUDE(GetPrerequisites) GET_PREREQUISITES(@BINARY_LOCATION@ MULTIMC_PREREQS 1 1 "" "") @@ -19,7 +25,7 @@ FOREACH(PREREQ ${MULTIMC_PREREQS}) message(STATUS "Adding install prerequisite: ${PREREQ_NAME}") FILE(INSTALL - DESTINATION "${CMAKE_INSTALL_PREFIX}" + DESTINATION "${LIB_INSTALL_PREFIX}" TYPE PROGRAM RENAME "${PREREQ_NAME}" FILES "${PREREQ_ACTUAL}" |