CMake: fix tests message

This commit is contained in:
Mihai Fufezan 2025-09-01 22:57:25 +03:00
parent 5bb8adbc32
commit 641d85b14e
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg

View file

@ -397,13 +397,6 @@ else()
message(STATUS "hyprpm is enabled (NO_HYPRPM not defined)")
endif()
if(NO_TESTS)
message(STATUS "building tests is disabled")
else()
message(STATUS "building tests is enabled (NO_TESTS not defined)")
add_subdirectory(hyprtester)
endif()
# binary and symlink
install(TARGETS Hyprland)
@ -461,6 +454,8 @@ install(
PATTERN "*.inc")
if(TESTS)
message(STATUS "building tests is enabled TESTS")
enable_testing()
add_custom_target(tests)
@ -471,4 +466,6 @@ if(TESTS)
COMMAND hyprtester)
add_dependencies(tests hyprtester)
else()
message(STATUS "building tests is disabled")
endif()