Fix missing shared library version

The libtarget variable isn't defined here (it's used in a helper
function above). This caused libhackrf to be built and installed without
a version number.
This commit is contained in:
Adam Sampson
2025-10-01 12:14:45 +01:00
parent ab60569255
commit aa6390a34a

View File

@@ -86,7 +86,7 @@ endfunction()
# Dynamic library
if(ENABLE_SHARED_LIB)
add_library(hackrf SHARED hackrf.c)
set_target_properties(${libtarget} PROPERTIES
set_target_properties(hackrf PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})
libhackrf_common_settings(hackrf)