Skip to content

Commit

Permalink
fix: support <= 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Oct 31, 2023
1 parent 8ff5b42 commit 6f4cc4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fetch_ic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@

include_guard(GLOBAL)

if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24.0")
set(download_extract_timestamp "DOWNLOAD_EXTRACT_TIMESTAMP true")
endif()

include(FetchContent)

FetchContent_Declare(ic_cmake
URL https://github.com/intercreate/test-cmake/releases/latest/download/ic.zip
DOWNLOAD_EXTRACT_TIMESTAMP true
${download_extract_timestamp}
)
FetchContent_MakeAvailable(ic_cmake)

Expand Down

0 comments on commit 6f4cc4f

Please sign in to comment.