Skip to content

Commit

Permalink
fix cmake warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Sep 23, 2024
1 parent 2189e41 commit ec4bf62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.20)

project(slang-rhi)

# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()

# Add the cmake directory to the module path.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

Expand Down
2 changes: 1 addition & 1 deletion cmake/FetchPackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ macro(FetchPackage name)
FetchContent_GetProperties(${name})
if(NOT ${name}_POPULATED)
message(STATUS "Fetching ${name} ...")
FetchContent_Populate(${name})
FetchContent_MakeAvailable(${name})
endif()
endmacro()

0 comments on commit ec4bf62

Please sign in to comment.