From fdaaad34389d7c27b4d12711848300061cc8c395 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 1 Jan 2022 16:50:27 +0100 Subject: [PATCH] tests: Build core tests only if core is actually being built Building of the core-specific unit tests must be conditional on the core actually being built. --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a1916ca4..dfb8802a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,2 +1,4 @@ add_subdirectory(common) -add_subdirectory(core) +if (BUILD_CORE) + add_subdirectory(core) +endif() -- 2.20.1