From dc1bc8ff178348f5fba3af58c50b03ad75039eab Mon Sep 17 00:00:00 2001 From: Sascha Kratky Date: Sat, 19 Mar 2016 12:28:30 +0100 Subject: [PATCH] suppress pointless warning for Ninja --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bfe830a..77d01d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.12) +if (POLICY CMP0058) + # Ninja requires custom command byproducts to be explicit + cmake_policy(SET CMP0058 NEW) +endif() + project (CotireExample) set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")