Enable CMP0074 policy to suppress CMake warning.

This commit is contained in:
levlam 2021-09-01 19:09:50 +03:00
parent b1db807868
commit 8e41fd1aab

View File

@ -31,6 +31,10 @@ if (POLICY CMP0060)
# link libraries by full path # link libraries by full path
cmake_policy(SET CMP0060 NEW) cmake_policy(SET CMP0060 NEW)
endif() endif()
if (POLICY CMP0074)
# use environment variables to find libraries
cmake_policy(SET CMP0074 NEW)
endif()
include(PreventInSourceBuild) include(PreventInSourceBuild)
prevent_in_source_build() prevent_in_source_build()