From: Guido Falsi Date: Fri, 8 Oct 2021 21:52:56 +0000 (+0200) Subject: Fix BUILD_TESTING on non Linux unices X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~176^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5667a6aad2acc5f396e5684b64fa76b44aff467a;p=nextcloud-desktop.git Fix BUILD_TESTING on non Linux unices vfs_xattr is build only if LINUX is defined, but when building tests it is depended upon when UNIX is defined. This patch requires it only when LINUX is defined. Signed-off-by: Guido Falsi --- diff --git a/test/nextcloud_add_test.cmake b/test/nextcloud_add_test.cmake index 13a0b984a..98f3ef767 100644 --- a/test/nextcloud_add_test.cmake +++ b/test/nextcloud_add_test.cmake @@ -23,7 +23,7 @@ macro(nextcloud_add_test test_class) ) endif() - if (UNIX) + if (LINUX) target_link_libraries(${OWNCLOUD_TEST_CLASS}Test PRIVATE nextcloudsync_vfs_xattr )