Merge pull request #612 from miloyip/cmake_CMP0054

Try to fix cmake CMP0054 warning
This commit is contained in:
Milo Yip 2016-04-21 10:59:30 -05:00
commit e6a1bd91bc
3 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
* Fix a bug in schema minimum/maximum keywords for 64-bit integer (e7149d665941068ccf8c565e77495521331cf390)
* Fix a crash bug in regex (#605)
* Fix schema "required" keyword cannot handle duplicated keys (#609)
* Fix cmake CMP0054 warning (#612)
### Changed
* Clarify problematic JSON license (#392)

View File

@ -1,4 +1,8 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules)
PROJECT(RapidJSON CXX)

View File

@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 2.8)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
set(EXAMPLES
capitalize
condense