aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-02-15 13:09:28 +0100
committerAndreas Schneider <asn@samba.org>2019-02-20 17:23:41 +0100
commit9a9250a79143df88c3100e509e29c00536045b6b (patch)
tree731afc2315530af5ae601c27a94c6c7d944aa2b6 /src
parent24e597330ec6fbbdc149d798e70d6ed48729bd84 (diff)
downloadsocket_wrapper-9a9250a79143df88c3100e509e29c00536045b6b.tar.gz
socket_wrapper-9a9250a79143df88c3100e509e29c00536045b6b.tar.xz
socket_wrapper-9a9250a79143df88c3100e509e29c00536045b6b.zip
cmake: Use GNUInstallDirs
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 952df75..73f8cd0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,12 +20,10 @@ if (DEFINED DEFAULT_LINK_FLAGS)
LINK_FLAGS ${DEFAULT_LINK_FLAGS})
endif()
-install(
- TARGETS
- socket_wrapper
- RUNTIME DESTINATION ${BIN_INSTALL_DIR}
- LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+install(TARGETS socket_wrapper
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
set(SOCKET_WRAPPER_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}socket_wrapper${CMAKE_SHARED_LIBRARY_SUFFIX}" PARENT_SCOPE)