summaryrefslogtreecommitdiff
path: root/cmake/mysql_version.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@u8>2010-01-28 11:30:21 +0100
committerVladislav Vaintroub <vvaintroub@u8>2010-01-28 11:30:21 +0100
commit9632ea7475317a587cabd083164d59c3cfadf009 (patch)
tree95cb0e9648a81d06f049b378fe9c22d72b0a235b /cmake/mysql_version.cmake
parent9cabc9fd8ac4d249d95ff7140371533070dedd4e (diff)
downloadmariadb-git-9632ea7475317a587cabd083164d59c3cfadf009.tar.gz
do not redefine CPACK_PACKAGE_FILE_NAME, if it is already given
Diffstat (limited to 'cmake/mysql_version.cmake')
-rw-r--r--cmake/mysql_version.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
index 67288767d20..e367da651e9 100644
--- a/cmake/mysql_version.cmake
+++ b/cmake/mysql_version.cmake
@@ -98,7 +98,9 @@ ENDIF()
INCLUDE(package_name)
-GET_PACKAGE_FILE_NAME(CPACK_PACKAGE_FILE_NAME)
+IF(NOT CPACK_PACKAGE_FILE_NAME)
+ GET_PACKAGE_FILE_NAME(CPACK_PACKAGE_FILE_NAME)
+ENDIF()
IF(NOT CPACK_SOURCE_PACKAGE_FILE_NAME)
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "mysql-${VERSION}")