aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-09-13 18:43:19 +0200
committerMarco Varlese <marco.varlese@suse.de>2018-09-14 07:21:51 +0000
commit958192dc2abf427118a227d142f5b03807098cb2 (patch)
treeb10189273b9edce2a6124950fa7b2fbbae19fbb1 /src/cmake
parentd23d39cc012e5b1075a2323d6e940ae5ad43de46 (diff)
cmake: use VPP package in VOM
Change-Id: I83b244be920521e580085beffb7e40613e67c8ee Signed-off-by: Damjan Marion <damarion@cisco.com>
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)