Skip to content

Commit 526fe7b

Browse files
author
Gianfranco Costamagna
committed
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
1 parent 97f703f commit 526fe7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ cmake_minimum_required (VERSION 3.15)
1919
include(scripts/windows/version.cmake)
2020
include(scripts/linux/version.cmake)
2121

22-
message(STATUS "COVESA DLT Viewer version: ${DLT_PROJECT_VERSION_MAJOR}.${DLT_PROJECT_VERSION_MINOR}.${DLT_PROJECT_VERSION_PATCH}")
23-
if(NOT DLT_PROJECT_VERSION_MAJOR OR NOT DLT_PROJECT_VERSION_MINOR OR NOT DLT_PROJECT_VERSION_PATCH)
22+
if(NOT DEFINED DLT_PROJECT_VERSION_MAJOR OR NOT DEFINED DLT_PROJECT_VERSION_MINOR OR NOT DEFINED DLT_PROJECT_VERSION_PATCH)
2423
set(DLT_PROJECT_VERSION_MAJOR 0)
2524
set(DLT_PROJECT_VERSION_MINOR 0)
2625
set(DLT_PROJECT_VERSION_PATCH 0)

0 commit comments

Comments
 (0)