Browse Source

Merge pull request #4906 from richardkchapman/tag-check

HPCC-10012 Add support for centos builds with -with-plugins variant

Verified by Chris
Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 11 năm trước cách đây
mục cha
commit
7a8835f19c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -211,9 +211,9 @@ set(CPACK_SOURCE_IGNORE_FILES
 ## Run file configuration to set build tag along with install lines for generated
 ## Run file configuration to set build tag along with install lines for generated
 ## config files.
 ## config files.
 ###
 ###
-set( BUILD_TAG "${CPACK_RPM_PACKAGE_VERSION}_${version}-${stagever}")
+set( BUILD_TAG "${projname}_${version}-${stagever}")
 if (USE_GIT_DESCRIBE OR CHECK_GIT_TAG)
 if (USE_GIT_DESCRIBE OR CHECK_GIT_TAG)
-    FETCH_GIT_TAG (${CMAKE_SOURCE_DIR} ${CPACK_RPM_PACKAGE_VERSION}_${version} GIT_BUILD_TAG)
+    FETCH_GIT_TAG (${CMAKE_SOURCE_DIR} ${projname}_${version} GIT_BUILD_TAG)
     message ("-- Git tag is '${GIT_BUILD_TAG}'")
     message ("-- Git tag is '${GIT_BUILD_TAG}'")
     if (NOT "${GIT_BUILD_TAG}" STREQUAL "${BUILD_TAG}")
     if (NOT "${GIT_BUILD_TAG}" STREQUAL "${BUILD_TAG}")
         if (CHECK_GIT_TAG)
         if (CHECK_GIT_TAG)