Fix BUILD_TESTING on non Linux unices
authorGuido Falsi <mad@madpilot.net>
Fri, 8 Oct 2021 21:52:56 +0000 (23:52 +0200)
committerGuido Falsi <mad@madpilot.net>
Tue, 12 Oct 2021 14:32:24 +0000 (16:32 +0200)
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 <mad@madpilot.net>
test/nextcloud_add_test.cmake

index 13a0b984a4303da88ab29bb7d2271d485a00de92..98f3ef7673cdd740d96dd2b42528d360ae9a5890 100644 (file)
@@ -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
         )