Skip to content

Commit

Permalink
[qt5-base]Add a print message to inform the user to install the depen…
Browse files Browse the repository at this point in the history
…dency package. (#6983)
  • Loading branch information
JackBoosY authored and Rastaban committed Jul 17, 2019
1 parent 00edb03 commit 8e17f07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/qt5-base/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore
)

elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
if (NOT EXISTS "/usr/include/GL/glu.h")
message(FATAL_ERROR "qt5 requires libgl1-mesa-dev and libglu1-mesa-dev, please use your distribution's package manager to install them.\nExample: \"apt-get install libgl1-mesa-dev\" and \"apt-get install libglu1-mesa-dev\"")
endif()

configure_qt(
SOURCE_PATH ${SOURCE_PATH}
PLATFORM "linux-g++"
Expand Down

0 comments on commit 8e17f07

Please sign in to comment.