From f2a108945d0b78540521cc1ec643caadb0c8ac61 Mon Sep 17 00:00:00 2001 From: James Turner <zakalawe@mac.com> Date: Mon, 26 Oct 2020 15:59:05 +0000 Subject: [PATCH] Expose version number parts in the header This will avoid strutils::split to extract these values. --- src/Include/config_cmake.h.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Include/config_cmake.h.in b/src/Include/config_cmake.h.in index 5a8b2c154..a0dadcb74 100644 --- a/src/Include/config_cmake.h.in +++ b/src/Include/config_cmake.h.in @@ -25,6 +25,8 @@ #define VERSION "@FLIGHTGEAR_VERSION@" #define FLIGHTGEAR_VERSION "@FLIGHTGEAR_VERSION@" +#define FLIGHTGEAR_MAJOR_VERSION @FG_VERSION_MAJOR@ +#define FLIGHTGEAR_MINOR_VERSION @FG_VERSION_MINOR@ #cmakedefine ENABLE_UIUC_MODEL #cmakedefine ENABLE_LARCSIM