Skip to content
Snippets Groups Projects
Commit 010c1370 authored by Ray Molenkamp's avatar Ray Molenkamp
Browse files

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
parent 8f48a32f
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,11 @@ if(POLICY CMP0068) ...@@ -102,6 +102,11 @@ if(POLICY CMP0068)
cmake_policy(SET CMP0068 NEW) cmake_policy(SET CMP0068 NEW)
endif() endif()
# find_package() uses <PackageName>_ROOT variables.
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Load some macros. # Load some macros.
include(build_files/cmake/macros.cmake) include(build_files/cmake/macros.cmake)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment