[Bug 270728] New: CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 270728] New: CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=270728

           Summary: CMakeLists.txt:159 doesn't specify which target needs
                    to link to QtScript library
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           unspecified (using Devel)
OS:                Linux

CMakeLists.txt line 159 says:

#---------------following code is to add the QtScript
libraries-----------------------

TARGET_LINK_LIBRARIES(${QT_QTSCRIPT_LIBRARY})

The syntax, however, is "TARGET_LINK_LIBRARIES(target [library] ...)"

This results in the following warning when configuring with CMake 2.8.3. I
suggest to just remove this line, as it doesn't work anyway, or correctly apply
it to the targets that need linking to QtScript.

CMake Warning (dev) at CMakeLists.txt:159 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "Qt4::QtScript" which is not built
  by this project.

  CMake does not support this but it used to work accidentally and is being
  allowed for compatibility.

  Policy CMP0016 is not set: target_link_libraries() reports error if only
  argument is not a target.  Run "cmake --help-policy CMP0016" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
This warning is for project developers.  Use -Wno-dev to suppress it.



Reproducible: Didn't try

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 270728] CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=270728


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2011-04-12 07:02:09 ---
Git commit c17305ff81b9f50dab8073d35bb2a255167b4c4a by Gilles Caulier.
Committed on 12/04/2011 at 07:07.
Pushed by cgilles into branch 'master'.

remove obsolete line
BUGS: 270728

M  +0    -4    CMakeLists.txt    

http://commits.kde.org/digikam/c17305ff81b9f50dab8073d35bb2a255167b4c4a

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 270728] CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

Gilles Caulier-4
In reply to this post by Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=270728

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 270728] CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

bugzilla_noreply
In reply to this post by Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=270728

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Portability

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 270728] CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library

bugzilla_noreply
In reply to this post by Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=270728

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Portability                 |Bundle-Tarball

--
You are receiving this mail because:
You are the assignee for the bug.