MantisBT - CMake
View Issue Details
0014670CMakeCCMakepublic2013-12-26 04:112014-06-02 08:37
Sascha Kratky 
Stephen Kelly 
normalmajoralways
closedfixed 
MacOS X10.9.1
CMake 2.8.11.1 
CMake 3.0 
0014670: get_property does not work for ALIASED_TARGET property
Retrieving the ALIASED_TARGET property with the get_property function results in the runtime error:

CMake Error at CMakeLists.txt:10 (get_property):
  get_property unknown error.
cmake_minimum_required(VERSION 2.8.12)

add_executable(main main.cpp)

# works
get_target_property (_aliasTarget main ALIASED_TARGET)
message(STATUS "${_aliasTarget}")

# does not work
get_property (_aliasTargetIsSet TARGET main PROPERTY ALIASED_TARGET SET)
get_property (_aliasTarget TARGET main PROPERTY ALIASED_TARGET)
No tags attached.
Issue History
2013-12-26 04:11Sascha KratkyNew Issue
2013-12-26 06:59Stephen KellyNote Added: 0034877
2013-12-26 06:59Stephen KellyStatusnew => resolved
2013-12-26 06:59Stephen KellyFixed in Version => CMake 3.0
2013-12-26 06:59Stephen KellyResolutionopen => fixed
2013-12-26 06:59Stephen KellyAssigned To => Stephen Kelly
2014-06-02 08:37Robert MaynardNote Added: 0036067
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0034877)
Stephen Kelly   
2013-12-26 06:59   
Thanks. Fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8e66cbcf [^]
(0036067)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.