gnu: ftxui: Fix cross-compiling.

* gnu/packages/cpp.scm (ftxui)[arguments]<#:configure-flags>: Disable
FTXUI_BUILD_TESTS when cross-compiling.

Change-Id: I0c4578febcbd40076dc0b85505406e16d4b65ba1
This commit is contained in:
Zheng Junjie 2024-09-18 16:03:09 +08:00
parent 736c0ad324
commit 0b77f7016c
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -3049,7 +3049,10 @@ (define-public ftxui
(native-inputs (list googletest benchmark))
(arguments
(list #:configure-flags
#~(list "-DFTXUI_BUILD_TESTS:BOOL=ON"
#~(list (string-append "-DFTXUI_BUILD_TESTS:BOOL="
#$(if (%current-target-system)
"OFF"
"ON"))
"-DFTXUI_BUILD_TESTS_FUZZER:BOOL=OFF"
"-DBUILD_SHARED_LIBS=ON")))
(home-page "https://github.com/ArthurSonzogni/FTXUI")