aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/library.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake
index e0eb7af76fc..b9e4f9b4bd8 100644
--- a/src/cmake/library.cmake
+++ b/src/cmake/library.cmake
@@ -21,7 +21,9 @@ macro(add_vpp_library lib)
add_library(${lib} SHARED ${ARG_SOURCES})
target_compile_options(${lib} PRIVATE -Wall)
- set_target_properties(${lib} PROPERTIES SOVERSION ${VPP_LIB_VERSION})
+ if(VPP_LIB_VERSION)
+ set_target_properties(${lib} PROPERTIES SOVERSION ${VPP_LIB_VERSION})
+ endif()
# library deps
if(ARG_LINK_LIBRARIES)