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


bug #37311: Cmake warning about "Policy CMP0003"

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

Add a New Comment Rich Markup

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>
Group administrator
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


  and other libraries with known full path:


  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:

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.12.
    Corresponding source code