Fix opengl for SFML

Cmake doesn't find opengl on Ubuntu (tried 18.04, 19.04) even after installing the required system dependencies.

libgl1-mesa-dev works instead of mesa-common-dev, as noted here: https://stackoverflow.com/a/47926071/6597851.
This commit is contained in:
Krisztián Csordás 2019-08-16 21:40:44 +02:00 committed by GitHub
parent c176532bd6
commit 879a7fafd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ file(WRITE ${SOURCE_PATH}/extlibs/libs/x "")
file(REMOVE_RECURSE ${SOURCE_PATH}/cmake/Modules/FindFreetype.cmake)
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message("SFML currently requires the following libraries from the system package manager:\n libudev\n libx11\n libxrandr\n opengl\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libxrandr-dev libxi-dev libudev-dev mesa-common-dev")
message("SFML currently requires the following libraries from the system package manager:\n libudev\n libx11\n libxrandr\n opengl\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libxrandr-dev libxi-dev libudev-dev libgl1-mesa-dev")
endif()
vcpkg_configure_cmake(