mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
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.
This commit is contained in:
parent
e092f1614c
commit
f657362fda
Notes:
sideshowbarker
2024-07-17 20:11:31 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/f657362fda6 Pull-request: https://github.com/SerenityOS/serenity/pull/12142 Reviewed-by: https://github.com/alimpfard
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user