diff --git a/CMakeLists.txt b/CMakeLists.txt index 857f797682..19f7123fef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")