File: 714.patch

package info (click to toggle)
dlt-viewer 2.29.0~beta1-dfsg-1~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 8,428 kB
  • sloc: cpp: 31,907; ansic: 4,231; xml: 492; sh: 282; makefile: 128
file content (30 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 2f1847d848a65bd97d550ed4222507bbd3f4fa2c Mon Sep 17 00:00:00 2001
From: Gianfranco Costamagna <locutusofborg@debian.org>
Date: Mon, 4 Aug 2025 10:22:59 +0200
Subject: [PATCH] Fix VERSION when being zero.

This fixes a regression in all variables being reset if one is zero instead of not defined
-- COVESA DLT Viewer version: 2.29.0
-- COVESA DLT Viewer version: 0.0.0

With this fix:

-- COVESA DLT Viewer version: 2.29.0
-- COVESA DLT Viewer version: 2.29.0
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 571e433f..2c43909a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ include(scripts/windows/version.cmake)
 include(scripts/linux/version.cmake)
 
 message(STATUS "COVESA DLT Viewer version: ${DLT_PROJECT_VERSION_MAJOR}.${DLT_PROJECT_VERSION_MINOR}.${DLT_PROJECT_VERSION_PATCH}")
-if(NOT DLT_PROJECT_VERSION_MAJOR OR NOT DLT_PROJECT_VERSION_MINOR OR NOT DLT_PROJECT_VERSION_PATCH)
+if(NOT DEFINED DLT_PROJECT_VERSION_MAJOR OR NOT DEFINED DLT_PROJECT_VERSION_MINOR OR NOT DEFINED DLT_PROJECT_VERSION_PATCH)
     set(DLT_PROJECT_VERSION_MAJOR 0)
     set(DLT_PROJECT_VERSION_MINOR 0)
     set(DLT_PROJECT_VERSION_PATCH 0)