From 4b5c466b20001ce82878643e99b4b0222497e260 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 25 Jun 2019 17:30:20 +0200 Subject: Update WIX CPack attributes --- CMakeScripts/CPack.cmake | 34 ++++++++++++++++++++++++++++++++++ CMakeScripts/ConfigCPack.cmake | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 CMakeScripts/CPack.cmake (limited to 'CMakeScripts') diff --git a/CMakeScripts/CPack.cmake b/CMakeScripts/CPack.cmake new file mode 100644 index 000000000..ad10c315e --- /dev/null +++ b/CMakeScripts/CPack.cmake @@ -0,0 +1,34 @@ +# This file reconfigures variables at CPack time. +# +# It is called by +# https://cmake.org/cmake/help/latest/module/CPack.html#variable:CPACK_PROJECT_CONFIG_FILE +# + +#used to get cmake-time variables at cpack-time +set(INKSCAPE_VERSION_SUFFIX @INKSCAPE_VERSION_SUFFIX@) + +if (CPACK_GENERATOR STREQUAL "WIX") + + # for Wix, version should be a.b.c.d with a,b,c between 0 and 255, and + # 0