tests: Build core tests only if core is actually being built
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 1 Jan 2022 15:50:27 +0000 (16:50 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 1 Jan 2022 17:11:21 +0000 (18:11 +0100)
Building of the core-specific unit tests must be conditional on the
core actually being built.

tests/CMakeLists.txt

index a1916ca..dfb8802 100644 (file)
@@ -1,2 +1,4 @@
 add_subdirectory(common)
-add_subdirectory(core)
+if (BUILD_CORE)
+    add_subdirectory(core)
+endif()