[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Setting policy to old for CMP0043 does not suppress warning messages
From:       Jake <thatcadguy () gmail ! com>
Date:       2014-06-13 16:55:24
Message-ID: CAKi9_X_0CZguASJm2DtUy94FgrRXxtMLMo-ueCgoeW52a+u5XQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


As a last note, I think that this warning behavior should be changed. Now
that I've figured things out, I have 5 total occurrences of
COMPILE_DEFINITIONS_something in my entire project (all CMake files) and I
received 82 warnings.


On Fri, Jun 13, 2014 at 9:53 AM, Jake <thatcadguy@gmail.com> wrote:

> Nevermind, answered my own question. Setting CMP0043 to new at the
> beginning of the main file and then push/popping and setting to old where
> needed produced no warnings.
>
>
> On Fri, Jun 13, 2014 at 9:44 AM, Nils Gladitz <nilsgladitz@gmail.com>
> wrote:
>
>> On 13.06.2014 18:32, Jake wrote:
>>
>>> Hello,
>>>
>>> I upgraded to 3.0 recently and tried to generate build files for a
>>> project (https://github.com/tpaviot/oce/). I noticed the new warning
>>> about CMP0043 and have been trying to fix, but setting the policy to OLD,
>>> even at the beginning of CMakeLists.txt doesn't seem to do anything. Is
>>> this a bug or what? "cmake_policy(SET CMP0043 OLD)" is what I put at the
>>> beginning.
>>>
>>
>> cmake_minimum_required() resets policies to match the version provided.
>> Did you set the policy before or after?
>>
>> Nils
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr">As a last note, I think that this warning behavior should be changed. \
Now that I&#39;ve figured things out, I have 5 total occurrences of \
COMPILE_DEFINITIONS_something in my entire project (all CMake files) and I received \
82 warnings.<br> </div><div class="gmail_extra"><br><br><div class="gmail_quote">On \
Fri, Jun 13, 2014 at 9:53 AM, Jake <span dir="ltr">&lt;<a \
href="mailto:thatcadguy@gmail.com" \
target="_blank">thatcadguy@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Nevermind, answered my own question. Setting \
CMP0043 to new at the beginning of the main file and then push/popping and setting to \
old where needed produced no warnings.<br> </div><div class="gmail_extra"><br>
<br><div class="gmail_quote"><div class="">On Fri, Jun 13, 2014 at 9:44 AM, Nils \
Gladitz <span dir="ltr">&lt;<a href="mailto:nilsgladitz@gmail.com" \
target="_blank">nilsgladitz@gmail.com</a>&gt;</span> wrote:<br></div><div> <div \
class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> <div>On 13.06.2014 18:32, Jake wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hello,<br>
<br>
I upgraded to 3.0 recently and tried to generate build files for a project (<a \
href="https://github.com/tpaviot/oce/" \
target="_blank">https://github.com/tpaviot/<u></u>oce/</a>). I noticed the new \
warning about CMP0043 and have been trying to fix, but setting the policy to OLD, \
even at the beginning of CMakeLists.txt doesn&#39;t seem to do anything. Is this a \
bug or what? &quot;cmake_policy(SET CMP0043 OLD)&quot; is what I put at the \
beginning.<br>


</blockquote>
<br></div>
cmake_minimum_required() resets policies to match the version provided.<br>
Did you set the policy before or after?<span><font color="#888888"><br>
<br>
Nils<br>
<br>
</font></span></blockquote></div></div></div><br></div>
</blockquote></div><br></div>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic