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 c0c09a6 commit e0eb4e1
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,5 +1,10 @@
cmake_minimum_required(VERSION 3.0.2)
project(metalang99 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()

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)

0 comments on commit e0eb4e1

Please sign in to comment.