summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
1 files changed, 1 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d18a2f4..382ab6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,17 +4,8 @@ include( FindDoxygen )
add_custom_target( unit )
set( EPT_VERSION "1.0.9" )
+set( LIBAPT_ABI_VERSION "4.12")
-# Get the soversion from libapt-pkg to include in our own
-execute_process(
- COMMAND "cc" "-xc" "-shared" "-Wl,--no-as-needed" "/dev/null" "-lapt-pkg"
- )
-execute_process(
- COMMAND "objdump" "-p" "a.out"
- COMMAND "awk" "/NEEDED.*libapt-pkg/ { sub(\".*\\\\.so\\\\.\", \"\"); print }"
- OUTPUT_VARIABLE LIBAPT_ABI_VERSION
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
set( LIBEPT_SOVERSION "1.aptpkg${LIBAPT_ABI_VERSION}" )
set( APT_INCLUDES "/usr/include/" CACHE STRING "apt include path" )
set( APT_LINKDIRS "/usr/lib/" CACHE STRING "apt library path" )