Mercurial > hg > orthanc-databases
changeset 273:07881ac5404b
fix build against system-wide orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Apr 2021 14:53:52 +0200 |
parents | c7dc70a0a477 |
children | b988cb30534f |
files | Framework/Plugins/IndexUnitTests.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h Thu Apr 22 14:09:46 2021 +0200 +++ b/Framework/Plugins/IndexUnitTests.h Thu Apr 22 14:53:52 2021 +0200 @@ -32,6 +32,11 @@ #include <gtest/gtest.h> #include <list> +#if !defined(ORTHANC_DATABASE_VERSION) +// This happens if using the Orthanc framework system-wide library +# define ORTHANC_DATABASE_VERSION 6 +#endif + #if ORTHANC_ENABLE_POSTGRESQL == 1 # define HAS_REVISIONS 1