Skip to content

Commit ebf3ed5

Browse files
ulmblizzard4591
authored andcommitted
Do not download sources during a Gentoo package build.
Rather than trying to access the network, error out when the private Qt5 files are not found among the cached versions.
1 parent 7223b9e commit ebf3ed5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ if (Qt5Sql_FOUND)
6060
message(STATUS "Using cached/shipped versions of required header/source files.")
6161
set(_PRIVATE_SOURCES_DIRECTORY "${PROJECT_SOURCE_DIR}/qt-file-cache/${Qt5Sql_VERSION}")
6262
include_directories("${PROJECT_SOURCE_DIR}/qt-file-cache/${Qt5Sql_VERSION}")
63+
elseif (CMAKE_BUILD_TYPE MATCHES "^Gentoo")
64+
# No network access during Gentoo package build
65+
message(SEND_ERROR "Header/source files for Qt5 version ${Qt5Sql_VERSION} not found. Please report this error!")
6366
else()
6467
if (Qt5Sql_VERSION VERSION_LESS 5.8.0)
6568
set(DOWNLOAD_PATH "src/sql/drivers/sqlite")

0 commit comments

Comments
 (0)