fix: add cmake_policy to CMakeLists.txt (#613)

Use the cmake_policy() command to set CMP0054 to NEW explicitly.
This commit is contained in:
SuperHuan 2021-10-22 16:02:06 +08:00 committed by GitHub
parent b9eff8b02a
commit 189dcde644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)