bugWeeChat - Bugs: bug #37311, Cmake warning about "Policy...

 
 

bug #37311: Cmake warning about "Policy CMP0003"

Submitted by:  Simon <foobar23>
Submitted on:  Mon 10 Sep 2012 09:00:25 AM UTC  
 
Category:  compilation Severity:  3 - Normal
Item Group:  compile/install Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Release:  0.3.8 IRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 17 Sep 2012 12:28:10 PM UTC, comment #2:

I can confirm that the warning is now gone. Thank you!

Simon <foobar23>
Mon 17 Sep 2012 11:15:29 AM UTC, comment #1:

I think it's fixed, please try to compile latest git version if you can and tell me if the warning has gone.
Thank you.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Mon 10 Sep 2012 09:00:25 AM UTC, original submission:

When trying to build weechat 0.3.8 on OpenBSD/sparc64 with cmake-2.8.9 I get the following warning. Not sure if this is really a bug, or if I'm missing something on my side:

-- Configuring done
CMake Warning (dev) at src/plugins/irc/CMakeLists.txt:20 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "irc" links to some libraries for which the linker must
search:

gcrypt

and other libraries with known full path:

/usr/local/lib/libgnutls.so.39.0

CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /usr/ports/pobj/weechat-0.3.8/build-sparc64

Simon <foobar23>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by foobar23 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-29 flashcode Open/ClosedOpen => Closed
    2012-09-17 flashcode StatusNone => Fixed
        Assigned toNone => flashcode

    Back to the top


    Powered by Savane 3.4