[cmake-developers] [CMake 0014778]: Allow IMPORTED target in target_include_directories
Mantis Bug Tracker
mantis at public.kitware.com
Fri Feb 28 02:40:59 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14778
======================================================================
Reported By: A. Klitzing
Assigned To:
======================================================================
Project: CMake
Issue ID: 14778
Category: CMake
Reproducibility: always
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-02-28 02:40 EST
Last Modified: 2014-02-28 02:40 EST
======================================================================
Summary: Allow IMPORTED target in target_include_directories
Description:
I'm using cmake 2.8.12 and qt 5.2.1 and I have some artifacts that should be
build as an OBJECT LIBRARY. But cmake and the new IMPORTED TARGETs way does not
allow me to do it.
There should be a way to add all needed compile stuff to OBJECT LIBRARIES like
the new IMPORTED TARGET feature. Intuitional I would use an IMPORTED target in
target_include_directories.
Steps to Reproduce:
FILE(GLOB_RECURSE FILES "*.cpp")
ADD_LIBRARY(Example OBJECT ${FILES})
TARGET_LINK_LIBRARIES(Example Qt5::Core)
Error: Object library target "Example" may not link to anything.
Of course I don't need to link libraries to that OBJECT LIBRARY. But I need
INCLUDES, DEFINITIONS and so on for the compilation because the artifacts uses
qt.
Additional Information:
https://bugreports.qt-project.org/browse/QTBUG-37105
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-02-28 02:40 A. Klitzing New Issue
======================================================================
More information about the cmake-developers
mailing list