1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:27:35 +00:00

CMake: Download Commonmark and Wasm spec tests using download_file()

This makes sure we have no bare file(DOWNLOAD) calls in the build
This commit is contained in:
Andrew Kaster 2023-08-10 15:45:19 -06:00 committed by Andrew Kaster
parent 92214b59ab
commit b046940679
2 changed files with 2 additions and 5 deletions

View file

@ -4,6 +4,6 @@ set(MARKDOWN_TEST_PATH ${CMAKE_BINARY_DIR}/commonmark.spec.json)
set(MARKDOWN_TEST_URL https://spec.commonmark.org/0.30/spec.json)
if(ENABLE_COMMONMARK_SPEC_DOWNLOAD)
file(DOWNLOAD ${MARKDOWN_TEST_URL} ${MARKDOWN_TEST_PATH})
download_file(${MARKDOWN_TEST_URL} ${MARKDOWN_TEST_PATH})
install(FILES ${MARKDOWN_TEST_PATH} DESTINATION home/anon/Tests)
endif()