CMake: don't run rgbbg unless we built it

This commit is contained in:
nick black 2024-03-02 21:17:43 -05:00
parent d88f40b836
commit fb7b132551
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -906,11 +906,14 @@ add_test(
NAME rgb NAME rgb
COMMAND rgb COMMAND rgb
) )
LIST(APPEND TESTBINS notcurses-info sgr-direct sgr-full rgb)
if(${USE_CXX})
add_test( add_test(
NAME rgbbg NAME rgbbg
COMMAND rgbbg COMMAND rgbbg
) )
LIST(APPEND TESTBINS notcurses-info sgr-direct sgr-full rgb rgbbg) LIST(APPEND TESTBINS rgbbg)
endif()
if(${USE_QRCODEGEN}) if(${USE_QRCODEGEN})
add_test( add_test(
NAME qrcode NAME qrcode