Skip to content

Commit

Permalink
Fix the DOWNLOAD_EXTRACT_TIMESTAMP CMake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hirrolot committed Nov 15, 2022
1 parent 8aa0521 commit 73c7c1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.11.4)
project(interface99 LANGUAGES C)

# Fix the warnings about `DOWNLOAD_EXTRACT_TIMESTAMP` in newer CMake versions.
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()

include(FetchContent)

FetchContent_Declare(
Expand Down

0 comments on commit 73c7c1e

Please sign in to comment.