2024-07-09 14:46:46 +02:00
|
|
|
cmake_policy(SET CMP0169 OLD)
|
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
include(FetchContent)
|
|
|
|
|
2024-07-09 14:46:46 +02:00
|
|
|
# The file hash depends on the line endings used by git
|
|
|
|
file(MD5 ${CMAKE_CURRENT_LIST_DIR}/dummyFile.txt md5_hash)
|
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
FetchContent_Declare(
|
|
|
|
t1
|
|
|
|
URL ${CMAKE_CURRENT_LIST_DIR}/dummyFile.txt
|
2024-07-09 14:46:46 +02:00
|
|
|
URL_HASH MD5=${md5_hash}
|
2020-08-30 11:54:41 +02:00
|
|
|
DOWNLOAD_NO_EXTRACT YES
|
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_Populate(t1)
|