mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-25 20:30:50 +08:00
fix: add cmake_policy to CMakeLists.txt (#613)
Use the cmake_policy() command to set CMP0054 to NEW explicitly.
This commit is contained in:
parent
b9eff8b02a
commit
189dcde644
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user