From 980c52f5c91b224dba3aee242db7081abc5f1b81 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Mon, 18 Sep 2023 02:25:23 -0400 Subject: [PATCH] cmake(build): indicate portable build in package name --- src/app/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index b673a073..5c0e6d19 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -124,6 +124,11 @@ if(WIN32) set(_package_file_name_suffix "-windows-unknown") endif() endif() + +if(ZEAL_PORTABLE_BUILD) + string(PREPEND _package_file_name_suffix "-portable") +endif() + set(CPACK_PACKAGE_FILE_NAME "${_project_output_name}-${ZEAL_VERSION_FULL}${_package_file_name_suffix}") set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})