MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015689 | CMake | CMake | public | 2015-08-07 15:17 | 2016-06-10 14:31 |
| Reporter | James Johnston | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Windows 7 | OS | OS Version | ||
| Product Version | CMake 3.3 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015689: Allow target_include_directories to specify INTERFACE for IMPORTED targets | ||||
| Description | When target_include_directories is used with an INTERFACE option on an IMPORTED target, the command fails with an error. Since I specified INTERFACE and not PUBLIC or PRIVATE, I should expect the command to work without error on the IMPORTED target. As a workaround, I have to use the more verbose set_property command. | ||||
| Steps To Reproduce | add_library(MyLib SHARED IMPORTED) set_property(TARGET MyLib PROPERTY IMPORTED_LOCATION mylib.dll) set_property(TARGET MyLib PROPERTY IMPORTED_IMPLIB mylib.lib) # Following line fails with an error: target_include_directories(MyLib INTERFACE mylib/include) # The error is: # Cannot specify include directories for imported target "MyLib". # Alternative command that works: # set_property(TARGET MyLib APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES mylib/include) | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-08-07 15:17 | James Johnston | New Issue | |||
| 2015-08-10 08:31 | Brad King | Severity | minor => feature | ||
| 2015-08-10 08:31 | Brad King | Summary | target_include_directories INTERFACE does not work for IMPORTED targets => Allow target_include_directories to specify INTERFACE for IMPORTED targets | ||
| 2015-08-10 08:32 | Brad King | Note Added: 0039258 | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042820 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||