From 3a774d37f880f7502c06fbb8a384192b9657945f Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 20 Sep 2019 09:02:35 +0200 Subject: [PATCH] call shell to get EPICS_SITE_VERSION only when compiling EPICS base --- configure/CONFIG_SITE | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure/CONFIG_SITE b/configure/CONFIG_SITE index 894bb1ae2..d91c3a963 100644 --- a/configure/CONFIG_SITE +++ b/configure/CONFIG_SITE @@ -161,7 +161,9 @@ USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES # Site version number, if set will append '-' and this string to the # EPICS version number string that is reported by many tools. +ifeq ($(INSTALL_LOCATION),$(EPICS_BASE)) EPICS_SITE_VERSION=$(shell $(PERL) -MPOSIX -e 'print strftime "%Y-%m-%d_$(shell git describe --tags --dirty)", localtime') +endif # For GNU compiler, use pipes rather than temporary files for # communication between the various stages of compilation.