From 70e0ad28d4db3552d7b159d7ce6c5ffde9fe744c 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 0e87aaa4..48a799f8 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()