From e484a38866932be9d583c91b3051b954a700caa6 Mon Sep 17 00:00:00 2001 From: Tsukasa Sugiura Date: Fri, 2 Oct 2020 09:49:09 +0900 Subject: [PATCH] Suppress CMake Warnings This commit will suppress CMake warnings CMP0064 and CMP0048 by set default policies. --- extern/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index cb4f7b4c4..5d9d3a796 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -56,6 +56,14 @@ endif() # NEW is the default for this policy except when cmake_minimum_required is # lower than CMake 3.3 set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) +# Set default policies for CMP0064 to NEW +# It will suppress the CMake Warnings that occurs at dependences. +# Related: libjpeg-turbo +set(CMAKE_POLICY_DEFAULT_CMP0064 NEW) +# Set default policies for CMP0048 to NEW +# It will suppress the CMake Warnings that occurs at dependences. +# Related: azure_c_shared (azure-macro-utils-c, umock-c), libjpeg-turbo +set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) add_subdirectory(azure_c_shared) add_subdirectory(cjson)