From 764c2c0e1cbf37f5543b8b8c5f2235a9e7557e5c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 27 Nov 2017 12:39:41 +0800 Subject: [PATCH] cmake: silence CMP0054 warning see https://gitlab.kitware.com/cmake/cmake/issues/17381 and https://gitlab.kitware.com/cmake/cmake/commit/a8be8b1b54fe1922a1d1fc0365c3ae5c918b6654, so before the updated cmake is released and packaged. we should add this setting. Signed-off-by: Kefu Chai --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a9360b604c55..bba56a3676dfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,9 @@ if(POLICY CMP0046) # Tweak policies (this one disables "missing" dependency warning) cmake_policy(SET CMP0046 OLD) endif() +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() if(POLICY CMP0056) cmake_policy(SET CMP0056 NEW) endif() -- 2.39.5