From 9dc739cdf8f5e11fc2ed77ebe7f97c72b0163c2a Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 13 Jul 2023 12:33:38 -0400 Subject: [PATCH] COMP: Update Main.cxx to explicitly include configure headers for used macros This fixes a regression introduced in 451194ac6 (COMP: Remove obsolete version header includes) and apply a fix similar to 8c2143ee9 (COMP: Explicitly include version header where associated macros are used) See https://discourse.slicer.org/t/custom-app-compile-error-slicer-main-project-version-full-undefined/30577 Co-authored-by: Csaba Pinter Co-authored-by: Kambiz Darabi --- .../Applications/{{cookiecutter.app_name}}App/Main.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/{{cookiecutter.project_name}}/Applications/{{cookiecutter.app_name}}App/Main.cxx b/{{cookiecutter.project_name}}/Applications/{{cookiecutter.app_name}}App/Main.cxx index 18756c9..c771369 100644 --- a/{{cookiecutter.project_name}}/Applications/{{cookiecutter.app_name}}App/Main.cxx +++ b/{{cookiecutter.project_name}}/Applications/{{cookiecutter.app_name}}App/Main.cxx @@ -22,6 +22,8 @@ // Slicer includes #include "qSlicerApplication.h" #include "qSlicerApplicationHelper.h" +#include "vtkSlicerConfigure.h" // For Slicer_MAIN_PROJECT_APPLICATION_NAME +#include "vtkSlicerVersionConfigure.h" // For Slicer_MAIN_PROJECT_VERSION_FULL namespace {