diff options
author | Damjan Jovanovic <damjan@apache.org> | 2017-01-08 19:24:20 +0000 |
---|---|---|
committer | Damjan Jovanovic <damjan@apache.org> | 2017-01-08 19:24:20 +0000 |
commit | ccfeae67446ca436de18623af54c564266026289 (patch) | |
tree | e89838fa09f05fb4f8766dcf3cad34a6875bad08 /cui | |
parent | b70d73f84c1a02336b1cdac4bcb7c5f7a66dd712 (diff) |
Only set the BUILD_VER_STRING define if it is available
as an environment variable and non-empty. At least the
Windows build breaks without this when --with-build-version
is not used.
Patch by: me
Notes
Notes:
ignore: obsolete
Diffstat (limited to 'cui')
-rw-r--r-- | cui/Library_cui.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index a33470866517..8d448ad8c8e9 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -33,8 +33,11 @@ $(eval $(call gb_Library_set_include,cui,\ -I$(SRCDIR)/cui/source/inc \ )) +ifneq ($(BUILD_VER_STRING),) +$(eval $(call gb_Library_add_defs,cui,-DBUILD_VER_STRING="$(BUILD_VER_STRING")) +endif + $(eval $(call gb_Library_add_defs,cui,\ - -DBUILD_VER_STRING="$(BUILD_VER_STRING)" \ -DCOPYRIGHT_YEAR=$(shell perl -e 'use POSIX qw(strftime); print strftime("%Y", gmtime($$ENV{SOURCE_DATE_EPOCH} || time));') \ )) |