From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 359EA2BB6A for ; Thu, 11 Oct 2018 12:16:01 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3FJzY1-8fDHH for ; Thu, 11 Oct 2018 12:16:01 -0400 (EDT) Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id E839A2BAE6 for ; Thu, 11 Oct 2018 12:16:00 -0400 (EDT) From: AKhatskevich Subject: [tarantool-patches] [tarantool-libyaml] Enable 0069 policy Date: Thu, 11 Oct 2018 19:15:56 +0300 Message-Id: <20181011161556.9015-1-avkhatskevich@tarantool.org> In-Reply-To: References: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: alexander.turenko@tarantool.org, tarantool-patches@freelists.org Cc: AKhatskevich From: AKhatskevich Without this policy cmake >= 3.9 produces warnings when its parent project uses LTO. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e20a494..362e33f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8) project (yaml C) +# Avoid warnings when building with cmake>=3.9 and LTO is enabled in parent +# project. +if(NOT CMAKE_VERSION VERSION_LESS 3.9) + cmake_policy(SET CMP0069 NEW) +endif() + set (YAML_VERSION_MAJOR 0) set (YAML_VERSION_MINOR 1) set (YAML_VERSION_PATCH 7) -- 2.14.1