1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-12 19:20:32 +00:00

Remove duplicate character if GROSMOSDR_PKG_VERSION contains a v (Fix)

This commit is contained in:
Carles Fernandez 2019-07-04 08:11:25 +02:00
parent fd9edf2486
commit 2d276526a8
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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