Skip to content

Commit

Permalink
Merge pull request #612 from miloyip/cmake_CMP0054
Browse files Browse the repository at this point in the history
Try to fix cmake CMP0054 warning
  • Loading branch information
miloyip committed Apr 21, 2016
2 parents 0fe08c2 + 5b6e40d commit e6a1bd9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 4 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 2.8)

if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()

set(EXAMPLES
capitalize
condense
Expand Down

0 comments on commit e6a1bd9

Please sign in to comment.