Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-08-23 01:24:09 +0300
committerRay Molenkamp <github@lazydodo.com>2020-08-23 01:24:09 +0300
commit010c1370aff680ad2c0e91b4a8b9718a58549cb0 (patch)
tree206f9197069ecaa5029f7424bcc42f68aa41327b /CMakeLists.txt
parent8f48a32f9f571df2d8983fa315680d7ae56336d1 (diff)
CMake: Fix policy warning about OSL_ROOT being set.
When the OSL_ROOT variable is set this is ignored by findpackage on cmake < 3.12. CMake 3.12 and up also ignore it and warn about it. This change tells cmake it is OK to use the variable and stop warning
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b91410a7a2..1ac88e81547 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -102,6 +102,11 @@ if(POLICY CMP0068)
cmake_policy(SET CMP0068 NEW)
endif()
+# find_package() uses <PackageName>_ROOT variables.
+if(POLICY CMP0074)
+ cmake_policy(SET CMP0074 NEW)
+endif()
+
#-----------------------------------------------------------------------------
# Load some macros.
include(build_files/cmake/macros.cmake)