From 3fe136099d9bc23b6ac6218adcf77feaa4667d00 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 24 Jan 2017 20:18:37 +1000 Subject: [PATCH] * update cmake : fix install path, change library name --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 885cfc8..b89a6a1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,8 @@ add_executable("oal-test" "testutil.c" "config.c" "ldapauth.c") target_link_libraries("oal-test" "ldap") -add_library("openvpn-auth-ldap" SHARED "config.c" "ldapauth.c" "plugin.c") -target_link_libraries("openvpn-auth-ldap" "ldap") +set(CMAKE_SHARED_LIBRARY_PREFIX "") +add_library("openvpn-plugin-auth-ldap" SHARED "config.c" "ldapauth.c" "plugin.c") +target_link_libraries("openvpn-plugin-auth-ldap" "ldap") -install(TARGETS "openvpn-auth-ldap" - LIBRARY DESTINATION "${INSTALL_LIB}") +install(TARGETS "openvpn-plugin-auth-ldap" LIBRARY DESTINATION "${INSTALL_LIB}/openvpn")