diff options
author | lazydodo <github@lazydodo.com> | 2016-09-06 16:21:23 +0300 |
---|---|---|
committer | lazydodo <github@lazydodo.com> | 2016-09-06 17:47:45 +0300 |
commit | 049ed1f4e7b0b50ab0f47bb698e9ad632ca5542f (patch) | |
tree | 547dcaa87b15434b930a2050c8f0581af7aa6395 /CMakeLists.txt | |
parent | c02f9bc5697cae47da81b9e54e9a3794fefbe499 (diff) |
[cmake/cpack] allow override of package name
Cpack generates a standard filename with git information in it, which might not always be wanted for release builds, this patch adds an option to override that default filename.
Reviewers: sergey, juicyfruit
Reviewed By: juicyfruit
Differential Revision: https://developer.blender.org/D2199
ammended to fix: wrong variable name in main CMakeLists.txt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f7d59a28cf..352712e5ca9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,8 +220,8 @@ if(${CMAKE_VERSION} VERSION_LESS 2.8.8) endif() set(BUILDINFO_OVERRIDE_DATE "" CACHE STRING "Use instead of the current date for reproducable builds (empty string disables this option)") set(BUILDINFO_OVERRIDE_TIME "" CACHE STRING "Use instead of the current time for reproducable builds (empty string disables this option)") -set(PACKAGENAME_OVERRIDE "" CACHE STRING "Use instead of the standard packagename (empty string disables this option)") -mark_as_advanced(PACKAGENAME_OVERRIDE) +set(CPACK_OVERRIDE_PACKAGENAME "" CACHE STRING "Use instead of the standard packagename (empty string disables this option)") +mark_as_advanced(CPACK_OVERRIDE_PACKAGENAME) mark_as_advanced(BUILDINFO_OVERRIDE_DATE) mark_as_advanced(BUILDINFO_OVERRIDE_TIME) |