[bt-devel] [ bibletime-Bugs-2783861 ] cmake warning: ADD_EXECUTABLE

SourceForge.net noreply at sourceforge.net
Mon May 11 09:56:26 MST 2009


Bugs item #2783861, was opened at 2009-04-29 20:36
Message generated for change (Settings changed) made by mgruner
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2783861&group_id=954

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: new bug
>Status: Closed
>Resolution: Fixed
Priority: 4
Private: No
Submitted By: Fabio Correa (facorread)
Assigned to: Martin Gruner (mgruner)
Summary: cmake warning: ADD_EXECUTABLE

Initial Comment:
Hello, keep up the great work with Bibletime. I am not very familiar with CMake; the following was printed while compiling bibletime-2.0.beta2 in my Gentoo box:

CMake Warning (dev) at CMakeLists.txt:101 (ADD_EXECUTABLE):
  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 "bibletime" links to some libraries for which the linker
  must search:                                                           

    -lpthread, -ldl, -lsword

  and other libraries with known full path:

    /usr/lib/qt4/libQtWebKit.so

  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.        


----------------------------------------------------------------------

>Comment By: Martin Gruner (mgruner)
Date: 2009-05-11 18:56

Message:
The cmake logic was changed and this warning does not appear any more.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2783861&group_id=954



More information about the bt-devel mailing list