summaryrefslogtreecommitdiff
path: root/cmake/Modules/GrPackage.cmake
diff options
context:
space:
mode:
authorNicholas Corgan2012-02-06 15:24:37 -0800
committerNicholas Corgan2012-02-06 15:24:37 -0800
commitf5e33003152c693a87f96cb92b7f5a98b627f3b2 (patch)
treef09d75a75b14248ae012229937888bab0995e554 /cmake/Modules/GrPackage.cmake
parentc2a9dedc9ff7027c55ace3bf356bc452067e1b86 (diff)
downloadgnuradio-f5e33003152c693a87f96cb92b7f5a98b627f3b2.tar.gz
gnuradio-f5e33003152c693a87f96cb92b7f5a98b627f3b2.tar.bz2
gnuradio-f5e33003152c693a87f96cb92b7f5a98b627f3b2.zip
CMake package uses "X.X.X" version number instead of "vX.X.X"
Diffstat (limited to 'cmake/Modules/GrPackage.cmake')
-rw-r--r--cmake/Modules/GrPackage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/GrPackage.cmake b/cmake/Modules/GrPackage.cmake
index 65fbcc353..a65a2f8a7 100644
--- a/cmake/Modules/GrPackage.cmake
+++ b/cmake/Modules/GrPackage.cmake
@@ -103,7 +103,7 @@ endfunction(CPACK_COMPONENT)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GNU Radio - The GNU Software Radio")
set(CPACK_PACKAGE_VENDOR "Free Software Foundation, Inc.")
set(CPACK_PACKAGE_CONTACT "Discuss GNURadio <discuss-gnuradio@gnu.org>")
-string(SUBSTRING "${VERSION}" 1 -1 CPACK_PACKAGE_VERSION)
+string(REPLACE "v" "" CPACK_PACKAGE_VERSION ${VERSION})
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/README)
set(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README)
set(CPACK_RESOURCE_FILE_WELCOME ${CMAKE_SOURCE_DIR}/README)