Skip to content

Commit

Permalink
Do not download sources during a Gentoo package build.
Browse files Browse the repository at this point in the history
Rather than trying to access the network, error out when the private
Qt5 files are not found among the cached versions.
  • Loading branch information
ulm authored and blizzard4591 committed Dec 2, 2017
1 parent 7223b9e commit ebf3ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ if (Qt5Sql_FOUND)
message(STATUS "Using cached/shipped versions of required header/source files.")
set(_PRIVATE_SOURCES_DIRECTORY "${PROJECT_SOURCE_DIR}/qt-file-cache/${Qt5Sql_VERSION}")
include_directories("${PROJECT_SOURCE_DIR}/qt-file-cache/${Qt5Sql_VERSION}")
elseif (CMAKE_BUILD_TYPE MATCHES "^Gentoo")
# No network access during Gentoo package build
message(SEND_ERROR "Header/source files for Qt5 version ${Qt5Sql_VERSION} not found. Please report this error!")
else()
if (Qt5Sql_VERSION VERSION_LESS 5.8.0)
set(DOWNLOAD_PATH "src/sql/drivers/sqlite")
Expand Down

0 comments on commit ebf3ed5

Please sign in to comment.