Skip to content

Commit 6f4cc4f

Browse files
committed
fix: support <= 3.24
1 parent 8ff5b42 commit 6f4cc4f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

fetch_ic.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55

66
include_guard(GLOBAL)
77

8+
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
9+
set(download_extract_timestamp "DOWNLOAD_EXTRACT_TIMESTAMP true")
10+
endif()
11+
812
include(FetchContent)
913

1014
FetchContent_Declare(ic_cmake
1115
URL https://github.com/intercreate/test-cmake/releases/latest/download/ic.zip
12-
DOWNLOAD_EXTRACT_TIMESTAMP true
16+
${download_extract_timestamp}
1317
)
1418
FetchContent_MakeAvailable(ic_cmake)
1519

0 commit comments

Comments
 (0)