From c6f06d6280112e6a32cc3f550d798ba224873708 Mon Sep 17 00:00:00 2001 From: silverqx Date: Wed, 8 Jun 2022 15:58:10 +0200 Subject: [PATCH] bugfix disable testdata_tom if tom disabled --- tests/CMakeLists.txt | 5 ++++- tests/tests.pro | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c52594f1e..5c082bedf 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,6 @@ add_subdirectory(auto) -add_subdirectory(testdata_tom) add_subdirectory(TinyUtils) + +if(TOM) + add_subdirectory(testdata_tom) +endif() diff --git a/tests/tests.pro b/tests/tests.pro index 3edbe90da..929654b03 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -2,7 +2,9 @@ TEMPLATE = subdirs SUBDIRS = \ auto \ - testdata_tom \ TinyUtils \ +!disable_tom: \ + SUBDIRS += testdata_tom + auto.depends = TinyUtils