[Digikam-devel] [Bug 270728] New: CMakeLists.txt:159 doesn't specify which target needs to link to QtScript library
Christoph Feck
christoph at maxiom.de
Tue Apr 12 03:26:08 BST 2011
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: digikam-devel at kde.org
ReportedBy: christoph at maxiom.de
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.
More information about the Digikam-devel
mailing list