MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014786 | CMake | CMake | public | 2014-03-05 08:06 | 2016-06-10 14:31 |
| Reporter | Philipp Möller | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Linux | OS | Arch Linux | OS Version | |
| Product Version | CMake 2.8.12.2 | ||||
| Target Version | CMake 3.0 | Fixed in Version | |||
| Summary | 0014786: Imported targets always require an IMPORTED_LOCATION | ||||
| Description | When creating an imported target "importtarget" and not setting the IMPORTED_LOCATION property, targets linking against the imported target will have a dependency on importtarget-NOTFOUND, making it impossible to build. A common use case is to manually create imported targets from the result of a find_package call for easy reference to the dependency in various places in the build system. Some libraries (like core Boost, Eigen) don't have any libraries. | ||||
| Steps To Reproduce | Use: cmake_minimum_required(VERSION 2.8) project(Foo) add_executable(main main.cpp) add_library(Header_only_lib IMPORTED) set_target_properties(${lib} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "/usr/include/my_lib" ) target_link_libraries(main Header_only_lib) cmake . make main # boom | ||||
| Additional Information | AFAIK this is going to be resolved with add_library(foo INTERFACE IMPORTED), but a work-around for earlier CMake versions would be much appreciated. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-03-05 08:06 | Philipp Möller | New Issue | |||
| 2014-03-05 11:40 | Brad King | Note Added: 0035303 | |||
| 2014-03-05 11:40 | Brad King | Status | new => acknowledged | ||
| 2014-03-05 11:40 | Brad King | Resolution | open => fixed | ||
| 2014-03-05 11:40 | Brad King | Fixed in Version | => CMake 3.0 | ||
| 2014-03-05 11:40 | Brad King | Target Version | => CMake 3.0 | ||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042497 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | acknowledged => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Fixed in Version | CMake 3.0 => | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | fixed => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||