From 1a398b54044a9f34fd927d5963fe040a46690f4d Mon Sep 17 00:00:00 2001 From: Evgeniy Gerasimenko Date: Wed, 5 Jul 2017 08:58:41 +0700 Subject: [PATCH] Fixed CMake CMP0048 warning. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b08f9cbe..4915c81c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ message(STATUS "CMake version: ${CMAKE_VERSION}") cmake_minimum_required(VERSION 2.8.12) +if (POLICY CMP0048) + cmake_policy(SET CMP0048 OLD) +endif () + # Determine if fmt is built as a subproject (using add_subdirectory) # or if it is the master project. set(MASTER_PROJECT OFF)