MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015832 | CMake | (No Category) | public | 2015-11-05 03:08 | 2016-05-02 08:30 |
| Reporter | Nils Gladitz | ||||
| Assigned To | Stephen Kelly | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 3.5 | ||||
| Target Version | CMake 3.5 | Fixed in Version | CMake 3.5 | ||
| Summary | 0015832: ALIAS target scope regression | ||||
| Description | The commit c389f8bb07e900d805ca3163f47b06e3dbe4303b cmLocalGenerator: Port Find method away from GetGeneratorTarget seems to have broken the following reduced test case: cmake_minimum_required(VERSION 3.3) project(Foo CXX) file(WRITE sub/CMakeLists.txt [[ file(WRITE foo.cpp "") add_library(foo STATIC foo.cpp) add_library(Foo::foo ALIAS foo) ]]) add_subdirectory(sub) add_custom_target(bar ALL ${CMAKE_COMMAND} -E echo $<TARGET_FILE:Foo::foo>) At generation time this now produces the diagnostic: CMake Error at CMakeLists.txt:14 (add_custom_target): Error evaluating generator expression: $<TARGET_FILE:Foo::foo> No target "Foo::foo" | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-11-05 03:08 | Nils Gladitz | New Issue | |||
| 2015-11-06 08:31 | Brad King | Assigned To | => Stephen Kelly | ||
| 2015-11-06 08:31 | Brad King | Status | new => assigned | ||
| 2015-11-06 08:31 | Brad King | Target Version | => CMake 3.5 | ||
| 2015-11-09 09:53 | Brad King | Note Added: 0039850 | |||
| 2015-11-09 09:54 | Brad King | Status | assigned => resolved | ||
| 2015-11-09 09:54 | Brad King | Resolution | open => fixed | ||
| 2015-11-09 09:54 | Brad King | Fixed in Version | => CMake 3.5 | ||
| 2016-05-02 08:30 | Robert Maynard | Note Added: 0040956 | |||
| 2016-05-02 08:30 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||