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 3197dc8029
commit 7d47e740bb

View File

@ -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()