From 61692401ce27923ee4595ebbc51392384d8715a5 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 15 Mar 2017 19:57:47 +0100 Subject: [PATCH] Issue #119 - be able to set RC number during lib build --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b0c896..380ffc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,9 @@ add_definitions ( -DSUPPORT_ASIAN_ENCODINGS=1 ) add_definitions ( -DSUPPORT_ACCESSIBILITY_CHECKS=1 ) add_definitions ( -DLIBTIDY_VERSION="${LIBTIDY_VERSION}" ) add_definitions ( -DRELEASE_DATE="${tidy_YEAR}/${tidy_MONTH}/${tidy_DAY}" ) -### add_definitions ( -DRC_NUMBER="MinGW" ) +if (TIDY_RC_NUMBER) + add_definitions ( -DRC_NUMBER="${TIDY_RC_NUMBER}" ) +endif () # Issue #188 - Support user items in platform.h if (TIDY_CONFIG_FILE)