summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--nix/hyprtester.nix4
2 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1079e0c8..423069cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -455,7 +455,7 @@ install(
PATTERN "*.hpp"
PATTERN "*.inc")
-if(NOT NO_TESTS)
+if(TESTS)
enable_testing()
add_custom_target(tests)
diff --git a/nix/hyprtester.nix b/nix/hyprtester.nix
index 7b729427..042228c7 100644
--- a/nix/hyprtester.nix
+++ b/nix/hyprtester.nix
@@ -10,7 +10,7 @@
}: let
inherit (lib.lists) flatten foldl';
inherit (lib.sources) cleanSourceWith cleanSource;
- inherit (lib.strings) hasSuffix;
+ inherit (lib.strings) hasSuffix cmakeBool;
adapters = flatten [
stdenvAdapters.useMoldLinker
@@ -48,6 +48,8 @@ in
cmakeBuildType = "Debug";
+ cmakeFlags = [(cmakeBool "TESTS" true)];
+
meta = {
homepage = "https://github.com/hyprwm/Hyprland";
description = "Hyprland testing framework";