From a46cc43e6f11f51593601d004db78db77ac2f8d8 Mon Sep 17 00:00:00 2001 From: Timo Gurr Date: Wed, 3 Aug 2022 13:11:55 +0200 Subject: [PATCH] test: Only build osx tests for OS_MACOS Fixes CMake build error on Linux: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: COCOA (ADVANCED) linked by target "macOS_test" in directory /var/tmp/paludis/build/media-video-obs-studio-28.0.0-beta1/work/obs-studio-28.0.0-beta1/test/osx --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8e5dd867b..3f1d2f4e6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,7 +5,7 @@ if(BUILD_TESTS) add_subdirectory(win) endif() - if(OS_POSIX) + if(OS_MACOS) add_subdirectory(osx) endif() endif()