[Bf-blender-cvs] [f66185fffdf] tmp-vfx-platform-2023: deps_builder: Silence CMP0135 warnings

Ray Molenkamp noreply at git.blender.org
Wed Oct 12 17:07:05 CEST 2022


Commit: f66185fffdf0395ed1cf7e78529a54fa25929454
Author: Ray Molenkamp
Date:   Wed Oct 12 15:06:04 2022 -0700
Branches: tmp-vfx-platform-2023
https://developer.blender.org/rBf66185fffdf0395ed1cf7e78529a54fa25929454

deps_builder: Silence CMP0135 warnings

CMake 3.24+ has the option to set the time
stamp of extracted file to the time of
extraction rather than the time in the
archive. Which is nice, it also however
added a multi line warning when you do
not explicitly set this option. So that
got a little noisy.

This change explicitly picks the new
policy and thus silences the warning.

===================================================================

M	build_files/build_environment/CMakeLists.txt

===================================================================

diff --git a/build_files/build_environment/CMakeLists.txt b/build_files/build_environment/CMakeLists.txt
index 45f80f58e81..5059b5a98e9 100644
--- a/build_files/build_environment/CMakeLists.txt
+++ b/build_files/build_environment/CMakeLists.txt
@@ -26,7 +26,9 @@
 
 project("BlenderDependencies")
 cmake_minimum_required(VERSION 3.5)
-
+if(POLICY CMP0135)
+  cmake_policy(SET CMP0135 NEW) # CMake 3.24+ Set the date/time for extracted files to time of extraction
+endif()
 include(ExternalProject)
 include(cmake/check_software.cmake)
 include(cmake/options.cmake)



More information about the Bf-blender-cvs mailing list