summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-25 22:10:48 -0500
committerAndreas Kling <kling@serenityos.org>2022-01-26 16:37:38 +0100
commitf657362fda65777e46dbd64b7e4d3103b683f1b8 (patch)
tree817ca62be80730f141dac6bcdd169c80abda7dfd /Meta/CMake
parente092f1614cd9f757a6d806a0729cf83e3e2c77cf (diff)
downloadserenity-f657362fda65777e46dbd64b7e4d3103b683f1b8.zip
LibEDID: Do not check if ${PNP_IDS_EXPORT_PATH} exists in pnp_ids.cmake
This check isn't needed because download_file() will check if it exists already before doing the download. Worse, it would prevent the generator target from being defined if the file existed, which then made CMake not realize the generated files were important and delete them.
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 3ffcff7488..88fa756aee 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_EXPORT_PATH})
+if (ENABLE_PNP_IDS_DOWNLOAD)
file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR})
download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")