From 84ed8c6ba8c7a9557c1a7f0a1453f2a6f4cec2e1 Mon Sep 17 00:00:00 2001 From: Marco Tranzatto <> Date: Thu, 17 Feb 2022 18:44:28 +0100 Subject: [PATCH] build: fix error set_target_properties called with incorrect number of arguments When compiling the project with cmake withing a ROS1 environment, the compiler termites with an error about "CMake Error at CMakeLists.txt:21 (set_target_properties): set_target_properties called with incorrect number of arguments". Fixed by inserting cmake variables within double quotes. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 143aed2..bd4a679 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +19,8 @@ option(DISABLE_CRYPTO "Do not build uvgRTP with crypto enabled" OFF) add_library(${PROJECT_NAME}) set_target_properties(${PROJECT_NAME} PROPERTIES - SOVERSION ${PROJECT_VERSION_MAJOR} - VERSION ${LIBRARY_VERSION} + SOVERSION "${PROJECT_VERSION_MAJOR}" + VERSION "${LIBRARY_VERSION}" ) set(UVGRTP_CXX_FLAGS "") set(UVGRTP_LINKER_FLAGS "")