Adjust CMake module to provide correct deps on OSX

Module will now give the OpenGL framework as a dependency instead of the
nonexistent libGL.
This commit is contained in:
Jonathan David Page 2014-03-10 22:25:17 -04:00
parent 185c09a95c
commit d7c9df7600

View File

@ -255,7 +255,7 @@ if(SFML_STATIC_LIBRARIES)
set(SFML_WINDOW_DEPENDENCIES ${SFML_WINDOW_DEPENDENCIES} "usbhid")
endif()
elseif(FIND_SFML_OS_MACOSX)
set(SFML_WINDOW_DEPENDENCIES ${SFML_WINDOW_DEPENDENCIES} "GL" "-framework Foundation -framework AppKit -framework IOKit -framework Carbon")
set(SFML_WINDOW_DEPENDENCIES ${SFML_WINDOW_DEPENDENCIES} "-framework OpenGL -framework Foundation -framework AppKit -framework IOKit -framework Carbon")
endif()
set(SFML_DEPENDENCIES ${SFML_DEPENDENCIES} ${SFML_WINDOW_DEPENDENCIES})
endif()