From aae2fbfc9968759f5955f10cdbb6bba7408eac75 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Thu, 21 Apr 2016 23:12:31 +0800 Subject: [PATCH] Try to fix cmake CMP0054 warning --- CMakeLists.txt | 4 ++++ example/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bdf484..d315b74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 6da18df..fd0e6eb 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -1,5 +1,9 @@ cmake_minimum_required(VERSION 2.8) +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() + set(EXAMPLES capitalize condense