From fb7b1325518f15b6853854fd4b58777184c79510 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 2 Mar 2024 21:17:43 -0500 Subject: [PATCH] CMake: don't run rgbbg unless we built it --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef033aaad..2ce166b45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -906,11 +906,14 @@ add_test( NAME rgb COMMAND rgb ) +LIST(APPEND TESTBINS notcurses-info sgr-direct sgr-full rgb) +if(${USE_CXX}) add_test( NAME rgbbg COMMAND rgbbg ) -LIST(APPEND TESTBINS notcurses-info sgr-direct sgr-full rgb rgbbg) +LIST(APPEND TESTBINS rgbbg) +endif() if(${USE_QRCODEGEN}) add_test( NAME qrcode