summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-25 18:44:39 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-26 00:22:53 +0000
commite2bcf5fafde68a031bc52d843b314b8804db9a1e (patch)
tree8bc261a334c7d3291503ef33107b8e4c43f86b96
parent931302c500f9c70446ff74f1cccd70ec00f9af12 (diff)
downloadserenity-e2bcf5fafde68a031bc52d843b314b8804db9a1e.zip
Meta: Download PNP ID data with fallible download function
-rw-r--r--Meta/CMake/pnp_ids.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Meta/CMake/pnp_ids.cmake b/Meta/CMake/pnp_ids.cmake
index 8396006af5..498914e864 100644
--- a/Meta/CMake/pnp_ids.cmake
+++ b/Meta/CMake/pnp_ids.cmake
@@ -6,9 +6,8 @@ set(PNP_IDS_EXPORT_PATH ${CMAKE_BINARY_DIR}/pnp.ids.html)
set(PNP_IDS_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${PNP_IDS_FILE})
if(ENABLE_PNP_IDS_DOWNLOAD AND NOT EXISTS ${PNP_IDS_EXPORT_PATH})
- message(STATUS "Downloading PNP ID database from ${PNP_IDS_URL}...")
file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR})
- file(DOWNLOAD ${PNP_IDS_URL} ${PNP_IDS_EXPORT_PATH} INACTIVITY_TIMEOUT 10)
+ download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")
set(PNP_IDS_HEADER LibEDID/PnpIDs.h)
set(PNP_IDS_IMPLEMENTATION LibEDID/PnpIDs.cpp)