diff --git a/cmake/install.cmake b/cmake/install.cmake index a9071bc..3100749 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -17,11 +17,11 @@ ENDIF(NOT CMAKE_INSTALL_PREFIX) # Install the library IF(BUILDING_SHARED) INSTALL(TARGETS sword - DESTINATION ${SWORD_INSTALL_DIR}/lib) + DESTINATION ${SWORD_INSTALL_DIR}/lib${LIB_SUFFIX}) ENDIF(BUILDING_SHARED) IF(BUILDING_STATIC) INSTALL(TARGETS sword_static - DESTINATION ${SWORD_INSTALL_DIR}/lib) + DESTINATION ${SWORD_INSTALL_DIR}/lib${LIB_SUFFIX}) ENDIF(BUILDING_STATIC) # Install the locales INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/locales.d @@ -41,7 +41,7 @@ MESSAGE(STATUS "Destination: ${SWORD_INSTALL_DIR}") # Configuration files, of course SET(prefix ${SWORD_INSTALL_DIR}) SET(exec_prefix ${SWORD_INSTALL_DIR}) -SET(libdir ${SWORD_INSTALL_DIR}/lib) +SET(libdir ${SWORD_INSTALL_DIR}/lib${LIB_SUFFIX}) SET(includedir ${SWORD_INSTALL_DIR}/include) SET(VERSION ${SWORD_VERSION}) IF(WITH_CURL) @@ -62,7 +62,7 @@ ENDIF(LIBSWORD_LIBRARY_TYPE STREQUAL "Static") # The @ONLY restricts it because our ${variable} which are left there as part of pkg-config CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/sword.pc.in ${CMAKE_CURRENT_BINARY_DIR}/sword.pc @ONLY) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/sword.pc - DESTINATION "${SWORD_INSTALL_DIR}/lib/pkgconfig") + DESTINATION "${SWORD_INSTALL_DIR}/lib${LIB_SUFFIX}/pkgconfig") # Need to build/install the IF(WITH_ICU AND ICU_GENRB)