Merge pull request #14217 from hyperlogic/bug-fix/cmake-cmp0074-warning-fix

Squelch cmake warning CMP0074 without requiring an update to cmake 3.12.
This commit is contained in:
Clément Brisset 2018-10-22 10:01:35 -07:00 committed by GitHub
commit bca3a3c1b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,11 @@ else()
cmake_minimum_required(VERSION 3.2)
endif()
# squelch the Policy CMP0074 warning without requiring an update to cmake 3.12.
if ((${CMAKE_MAJOR_VERSION} EQUAL 3 AND ${CMAKE_MINOR_VERSION} GREATER 11) OR ${CMAKE_MAJOR_VERSION} GREATER 3)
cmake_policy(SET CMP0074 NEW)
endif()
project(hifi)
include("cmake/init.cmake")