Skip to content

Commit e6a1bd9

Browse files
committed
Merge pull request #612 from miloyip/cmake_CMP0054
Try to fix cmake CMP0054 warning
2 parents 0fe08c2 + 5b6e40d commit e6a1bd9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5555
* Fix a bug in schema minimum/maximum keywords for 64-bit integer (e7149d665941068ccf8c565e77495521331cf390)
5656
* Fix a crash bug in regex (#605)
5757
* Fix schema "required" keyword cannot handle duplicated keys (#609)
58+
* Fix cmake CMP0054 warning (#612)
5859

5960
### Changed
6061
* Clarify problematic JSON license (#392)

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
2+
if(POLICY CMP0054)
3+
cmake_policy(SET CMP0054 NEW)
4+
endif()
5+
26
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules)
37

48
PROJECT(RapidJSON CXX)

example/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 2.8)
22

3+
if(POLICY CMP0054)
4+
cmake_policy(SET CMP0054 NEW)
5+
endif()
6+
37
set(EXAMPLES
48
capitalize
59
condense

0 commit comments

Comments
 (0)