~ruther/guix-local

321ddfe1db1bad1ff700fb36fe783b31e28d031c — Zheng Junjie 2 years ago cac593f
gnu: spdlog: Fix cross-compilation.

* gnu/packages/logging.scm (spdlog)[arguments]<#:configure-flags>: when
cross-compilation, don't add -DSPDLOG_BUILD_TESTS=ON.

Change-Id: I90911c548c3f138ff40bff4b086f6102b717acf2
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
1 files changed, 3 insertions(+), 1 deletions(-)

M gnu/packages/logging.scm
M gnu/packages/logging.scm => gnu/packages/logging.scm +3 -1
@@ 231,7 231,9 @@ output in multiple windows in a terminal.")
     (list #:configure-flags
           #~(list "-DSPDLOG_BUILD_BENCH=OFF"
                   "-DSPDLOG_BUILD_SHARED=ON"
                   "-DSPDLOG_BUILD_TESTS=ON")))
                   #$@(if (%current-target-system)
                          '()
                          '("-DSPDLOG_BUILD_TESTS=ON")))))
    (native-inputs (list catch2-3))
    (home-page "https://github.com/gabime/spdlog")
    (synopsis "Fast C++ logging library")