summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <mihai@fufexan.net>2025-07-02 00:18:34 +0300
committerGitHub <noreply@github.com>2025-07-01 23:18:34 +0200
commit90c8609cbb5ae7b488d7b14b4dfb3ec9585ed2b7 (patch)
treeeaf21e7398f8a013f92bc870f291ef075793388d
parentb246f33ab1a89e4c1f05928c52b5cd2fd65708ed (diff)
CMake: disable tests by default (#10899)
-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";