summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-02-06 17:17:28 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-02-06 18:27:38 +0100
commit544ad6f9759de6acc109307caee2100478cba8ed (patch)
treeeec4c0c26142f945f9540ed6e37f6e26173e3672 /src/lib
parentc80de3a96b4d91b1202d9ebebab11f6ff0af2045 (diff)
downloadouroboros-544ad6f9759de6acc109307caee2100478cba8ed.tar.gz
ouroboros-544ad6f9759de6acc109307caee2100478cba8ed.zip
build: Use GNUInstallDirs instead of hardcoded values0.9.9
This changes the build to use GNUInstallDirs instead of hardcoded values. Package maintainers can then override these defaults by passing the correct value to cmake on the command line. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 2460ce41..2ee285f8 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -238,9 +238,9 @@ target_link_libraries(ouroboros-dev ouroboros-common)
target_link_libraries(ouroboros-irm ouroboros-common)
-install(TARGETS ouroboros-common LIBRARY DESTINATION usr/lib)
-install(TARGETS ouroboros-dev LIBRARY DESTINATION usr/lib)
-install(TARGETS ouroboros-irm LIBRARY DESTINATION usr/lib)
+install(TARGETS ouroboros-common LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS ouroboros-dev LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS ouroboros-irm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
target_include_directories(ouroboros-common PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
${SYS_RND_HDR} ${LIBGCRYPT_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})