From 189dcde644a08f3e26af9663511b3373f8f2d73c Mon Sep 17 00:00:00 2001 From: SuperHuan Date: Fri, 22 Oct 2021 16:02:06 +0800 Subject: [PATCH] fix: add cmake_policy to CMakeLists.txt (#613) Use the cmake_policy() command to set CMP0054 to NEW explicitly. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03c9716..acb1e88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) cmake_minimum_required(VERSION 2.8.5) project(cJSON C) +cmake_policy(SET CMP0054 NEW) # 设置 CMP0054 策略 include(GNUInstallDirs)