[cmake-developers] [CMake 0014670]: get_property does not work for ALIASED_TARGET property
Mantis Bug Tracker
mantis at public.kitware.com
Thu Dec 26 04:11:16 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14670
======================================================================
Reported By: Sascha Kratky
Assigned To:
======================================================================
Project: CMake
Issue ID: 14670
Category: CCMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-12-26 04:11 EST
Last Modified: 2013-12-26 04:11 EST
======================================================================
Summary: get_property does not work for ALIASED_TARGET
property
Description:
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.
Steps to Reproduce:
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)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-12-26 04:11 Sascha Kratky New Issue
======================================================================
More information about the cmake-developers
mailing list