Only build Cocoa example when using Xcode

This commit is contained in:
Chris Thrasher 2021-12-31 13:05:20 -07:00 committed by Lukas Dürrenberger
parent 2ea46c8702
commit 70e0ad28d4

View File

@ -32,7 +32,7 @@ if(SFML_BUILD_GRAPHICS)
add_subdirectory(win32) add_subdirectory(win32)
elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD) elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD)
add_subdirectory(X11) add_subdirectory(X11)
elseif(SFML_OS_MACOSX) elseif(SFML_OS_MACOSX AND ${CMAKE_GENERATOR} MATCHES "Xcode")
add_subdirectory(cocoa) add_subdirectory(cocoa)
endif() endif()
endif() endif()