CMake: disable tests by default (#10899)

This commit is contained in:
Mihai Fufezan
2025-07-02 00:18:34 +03:00
committed by GitHub
parent b246f33ab1
commit 90c8609cbb
2 changed files with 4 additions and 2 deletions

View File

@@ -455,7 +455,7 @@ install(
PATTERN "*.hpp"
PATTERN "*.inc")
if(NOT NO_TESTS)
if(TESTS)
enable_testing()
add_custom_target(tests)

View File

@@ -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";