1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add $LIB_SUFFIX to install into right directory (#5915)

This commit is contained in:
Matthias Mailänder
2017-07-20 15:41:13 +02:00
committed by Michael Steenbeek
parent bb09019d9b
commit 3ac5a6897c

View File

@@ -14,6 +14,8 @@ set(CMAKE_MACOSX_RPATH 1)
set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v0.1.0/title-sequence-v0.1.0.zip")
set(TITLE_SEQUENCE_SHA1 "b587d83de508d0b104d14c599b76f8565900fce0")
set(LIB_SUFFIX "" CACHE STRING "Define suffix of the FHS library directory name (32/64 bit arch)")
option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.")
option(WITH_TESTS "Build tests")
option(PORTABLE "Create a portable build (-rpath=$ORIGIN)" OFF)
@@ -140,7 +142,7 @@ else ()
if (PORTABLE)
install(TARGETS "libopenrct2" LIBRARY DESTINATION "bin")
else ()
install(TARGETS "libopenrct2" LIBRARY DESTINATION "lib")
install(TARGETS "libopenrct2" LIBRARY DESTINATION "lib${LIB_SUFFIX}")
endif ()
endif ()
install(TARGETS "openrct2" RUNTIME DESTINATION "bin")