mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-29 12:41:09 +00: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:
1 parent
b9eff8b02a
commit
189dcde644
1 file changed
+1
@@ -2,6 +2,7 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
|||||||
cmake_minimum_required(VERSION 2.8.5)
|
cmake_minimum_required(VERSION 2.8.5)
|
||||||
|
|
||||||
project(cJSON C)
|
project(cJSON C)
|
||||||
|
cmake_policy(SET CMP0054 NEW) # 设置 CMP0054 策略
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user