use GNUInstallDirs from cmake to specify install paths.

Primarily this is to select whether 'lib64' or 'lib' is used on linux type systems.
This commit is contained in:
d3x0r
2017-07-06 01:49:43 -07:00
parent 728bda1830
commit a2bd5ebaba
9 changed files with 16 additions and 15 deletions

View File

@@ -829,9 +829,9 @@ if (BUILD_SHARED)
ARCHIVE_OUTPUT_NAME crypto${CRYPTO_POSTFIX})
set_target_properties(crypto-shared PROPERTIES VERSION
${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION})
install(TARGETS crypto crypto-shared DESTINATION lib)
install(TARGETS crypto crypto-shared DESTINATION ${CMAKE_INSTALL_LIBDIR})
else()
add_library(crypto STATIC ${CRYPTO_SRC})
install(TARGETS crypto DESTINATION lib)
install(TARGETS crypto DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()