From 7d47e740bb65f0bf3f2faa3e5cad728c9626e903 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Fri, 31 Dec 2021 13:05:20 -0700 Subject: [PATCH] Only build Cocoa example when using Xcode --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 0e87aaa43..48a799f81 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -32,7 +32,7 @@ if(SFML_BUILD_GRAPHICS) add_subdirectory(win32) elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD) add_subdirectory(X11) - elseif(SFML_OS_MACOSX) + elseif(SFML_OS_MACOSX AND ${CMAKE_GENERATOR} MATCHES "Xcode") add_subdirectory(cocoa) endif() endif()