Skip to content

Commit

Permalink
Only build Cocoa example when using Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Jan 8, 2022
1 parent df095b1 commit 879405d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 879405d

Please sign in to comment.