diff options
author | Johnny Jazeix <jazeix@gmail.com> | 2021-02-07 15:10:57 (GMT) |
---|---|---|
committer | Johnny Jazeix <jazeix@gmail.com> | 2021-02-07 15:10:57 (GMT) |
commit | 0aabeb0c30bae9509f46fdd2d27e8b724b853d6e (patch) | |
tree | ff5adfea94e480814a9ebf46f8529e2ca9d133f0 /Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake | |
parent | 51f7d7e919bab508d898770f44a1f57e7a748895 (diff) | |
download | CMake-0aabeb0c30bae9509f46fdd2d27e8b724b853d6e.zip CMake-0aabeb0c30bae9509f46fdd2d27e8b724b853d6e.tar.gz CMake-0aabeb0c30bae9509f46fdd2d27e8b724b853d6e.tar.bz2 |
CPack/NSIS: Add option for setting branding text
See https://nsis.sourceforge.io/Reference/BrandingText
for more information.
Fixes: #21479
Diffstat (limited to 'Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake')
-rw-r--r-- | Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake b/Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake index bfbcf9c..8bfcf26 100644 --- a/Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake +++ b/Tests/CPackNSISGenerator/RunCPackVerifyResult.cmake @@ -52,3 +52,11 @@ if("${output_index}" EQUAL "-1") else() message(STATUS "Found DPI-aware") endif() + +file(STRINGS "${project_file}" line REGEX "^BrandingText /TRIMRIGHT \"CMake branding text\"") +string(FIND "${line}" "TRIMRIGHT" output_index) +if("${output_index}" EQUAL "-1") + message(FATAL_ERROR "BrandingText not found in the project") +else() + message(STATUS "Found BrandingText") +endif() |