summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-01-25 00:56:11 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-26 00:53:09 +0330
commit98183ef572298e5541b1cdabc2021c1cd24f3373 (patch)
tree5101920a10bcaaf11fefcef31904f218deec6b0f /Meta/CMake
parentaa2021011989d8d658ad9d9b454b24e48872f4de (diff)
downloadserenity-98183ef572298e5541b1cdabc2021c1cd24f3373.zip
Meta: Correct the PNP ID download condition
`PNP_IDS_PATH` does not exist, set this to `PNP_IDS_EXPORT_PATH` to avoid redownloading the database every reconfigure.
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/pnp_ids.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/CMake/pnp_ids.cmake b/Meta/CMake/pnp_ids.cmake
index 4ee371f8f2..8396006af5 100644
--- a/Meta/CMake/pnp_ids.cmake
+++ b/Meta/CMake/pnp_ids.cmake
@@ -5,7 +5,7 @@ set(PNP_IDS_URL http://www.uefi.org/uefi-pnp-export)
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_PATH})
+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)