diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-07-18 01:45:26 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-17 10:45:26 -0700 |
| commit | 8e17f07f4446c7d3d2bc5a212d77147674c63f97 (patch) | |
| tree | 388068df804433eda8d3374d2cd6917d8057ba8a | |
| parent | 00edb0324c7c3b28882ed08d28fd29451ef12600 (diff) | |
| download | vcpkg-8e17f07f4446c7d3d2bc5a212d77147674c63f97.tar.gz vcpkg-8e17f07f4446c7d3d2bc5a212d77147674c63f97.zip | |
[qt5-base]Add a print message to inform the user to install the dependency package. (#6983)
| -rw-r--r-- | ports/qt5-base/portfile.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/qt5-base/portfile.cmake b/ports/qt5-base/portfile.cmake index a57411562..c53d30e5b 100644 --- a/ports/qt5-base/portfile.cmake +++ b/ports/qt5-base/portfile.cmake @@ -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++" |
