From 2d276526a81f5b25e93a19e512548243e0709860 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 4 Jul 2019 08:11:25 +0200 Subject: [PATCH] Remove duplicate character if GROSMOSDR_PKG_VERSION contains a v (Fix) --- cmake/Modules/FindGROSMOSDR.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/Modules/FindGROSMOSDR.cmake b/cmake/Modules/FindGROSMOSDR.cmake index 175ef6c58..ce2e655b5 100644 --- a/cmake/Modules/FindGROSMOSDR.cmake +++ b/cmake/Modules/FindGROSMOSDR.cmake @@ -100,10 +100,8 @@ include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GROSMOSDR DEFAULT_MSG GROSMOSDR_LIBRARIES GROSMOSDR_INCLUDE_DIR) if(GROSMOSDR_PKG_VERSION) - set(GROSMOSDR_VERSION ${GROSMOSDR_PKG_VERSION}) - set(KK "v1.2.3") - string(REGEX REPLACE "^v" "" KK_AUX KK) - message(STATUS "++++++++++++++++++++${KK_AUX}") + set(GROSMOSDR_VERSION_AUX ${GROSMOSDR_PKG_VERSION}) + string(REGEX REPLACE "^v" "" GROSMOSDR_VERSION ${GROSMOSDR_VERSION_AUX}) endif() set_package_properties(GROSMOSDR PROPERTIES