diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 43c6c5b95..421af2930 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -35,7 +35,7 @@ if(SFML_BUILD_GRAPHICS) if(NOT SFML_USE_DRM) add_subdirectory(X11) endif() - elseif(SFML_OS_MACOS AND ${CMAKE_GENERATOR} MATCHES "Xcode") + elseif(SFML_OS_MACOS) add_subdirectory(cocoa) endif() endif()