From: AKhatskevich <avkhatskevich@tarantool.org> To: alexander.turenko@tarantool.org, tarantool-patches@freelists.org Cc: AKhatskevich <avkhatskevich@gmail.com> Subject: [tarantool-patches] [tarantool-libyaml] Enable 0069 policy Date: Thu, 11 Oct 2018 19:15:56 +0300 [thread overview] Message-ID: <20181011161556.9015-1-avkhatskevich@tarantool.org> (raw) In-Reply-To: <cover.1533726342.git.avkhatskevich@tarantool.org> From: AKhatskevich <avkhatskevich@gmail.com> 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
next prev parent reply other threads:[~2018-10-11 16:16 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-08 11:10 [tarantool-patches] [PATCH 0/3] LTO && travis AKhatskevich 2018-08-08 11:10 ` [tarantool-patches] [PATCH 1/3] Fix: prevent guard-breaker optimization AKhatskevich 2018-10-10 14:26 ` [tarantool-patches] " Alexander Turenko 2018-10-11 16:02 ` Alex Khatskevich 2018-08-08 11:10 ` [tarantool-patches] [PATCH 2/3] Add LTO support AKhatskevich 2018-10-10 14:29 ` [tarantool-patches] " Alexander Turenko 2018-10-11 16:01 ` Alex Khatskevich 2018-08-08 11:10 ` [tarantool-patches] [PATCH 3/3] Add LTO testing && refactor travis.yml AKhatskevich 2018-10-10 14:43 ` [tarantool-patches] " Alexander Turenko 2018-10-11 16:12 ` [tarantool-patches] [PATCH] Enable 0069 policy AKhatskevich 2018-10-11 16:14 ` [tarantool-patches] [tarantool-small] " AKhatskevich 2018-10-11 16:15 ` AKhatskevich [this message] 2018-10-11 16:18 ` [tarantool-patches] [tarantool-msgpuck] " AKhatskevich
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181011161556.9015-1-avkhatskevich@tarantool.org \ --to=avkhatskevich@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=avkhatskevich@gmail.com \ --cc=tarantool-patches@freelists.org \ --subject='Re: [tarantool-patches] [tarantool-libyaml] Enable 0069 policy' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox