summaryrefslogtreecommitdiff
path: root/Source/cmGetTargetPropertyCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* stringapi: Use strings for property namesBen Boeckel2014-03-081-4/+8
| | | | Property names are always generated by CMake and should never be NULL.
* cmMakefile: make some methods take const std::string& instead of const char*Rolf Eike Beer2014-01-161-1/+1
| | | | | | | | Most callers already have a std::string, on which they called c_str() to pass it into these methods, which internally converted it back to std::string. Pass a std::string directly to these methods now, avoiding all these conversions. Those methods that only pass in a const char* will get the conversion to std::string now only once.
* get_target_property: Error on non-existent target.Stephen Kelly2014-01-081-1/+30
| | | | Introduce policy CMP0045 to control this behavior.
* Add the ALIAS target concept for libraries and executables.Stephen Kelly2013-08-021-6/+19
| | | | | | | | | | | | | | | | | * The ALIAS name must match a validity regex. * Executables and libraries may be aliased. * An ALIAS acts immutable. It can not be used as the lhs of target_link_libraries or other commands. * An ALIAS can be used with add_custom_command, add_custom_target, and add_test in the same way regular targets can. * The target of an ALIAS can be retrieved with the ALIASED_TARGET target property. * An ALIAS does not appear in the generated buildsystem. It is kept separate from cmMakefile::Targets for that reason. * A target may have multiple aliases. * An ALIAS target may not itself have an alias. * An IMPORTED target may not have an alias. * An ALIAS may not be exported or imported.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Updated exporting and importing of targets to support libraries and ↵Brad King2008-01-281-3/+1
| | | | | | | | | | | | | | | | | | configurations. - Created cmExportFileGenerator hierarchy to implement export file generation - Installed exports use per-config import files loaded by a central one. - Include soname of shared libraries in import information - Renamed PREFIX to NAMESPACE in INSTALL(EXPORT) and EXPORT() commands - Move addition of CMAKE_INSTALL_PREFIX to destinations to install generators - Import files compute the installation prefix relative to their location when loaded - Add mapping of importer configurations to importee configurations - Rename IMPORT targets to IMPORTED targets to distinguish from windows import libraries - Scope IMPORTED targets within directories to isolate them - Place all properties created by import files in the IMPORTED namespace - Document INSTALL(EXPORT) and EXPORT() commands. - Document IMPORTED signature of add_executable and add_library - Enable finding of imported targets in cmComputeLinkDepends
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-2/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: if get_target_property() doesn't find a target with the given name, itAlexander Neundorf2007-05-311-3/+3
| | | | | | | returns now "<NAME_OF_VAR>-NOTFOUND" instead of just "NOTFOUND", which can help in finding problems Alex
* ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates anAlexander Neundorf2007-05-221-1/+1
| | | | | | | | | | "imported" executable target. This can then be used e.g. with ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for "imported" targets, and FindTarget() now takes an additional argument bool useImportedTargets to specify whether you also want to search in the imported targets or only in the "normal" targets. Alex
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-3/+3
|
* ENH: modified GET_TARGET_PROPERTIES to work with all targetsKen Martin2005-06-201-46/+8
|
* ENH: Added cmTarget::GetBaseName and cmTarget::GetFullName methods and ↵Brad King2005-04-221-2/+1
| | | | removed cmLocalGenerator::GetFullTargetName and cmLocalUnixMakefileGenerator2::GetBaseTargetName. This functionality is more sensibly implemented in cmTarget. It is also needed for an upcoming feature in which both the shared and static versions of a library will be removed before one is linked.
* ENH: remove warningsBill Hoffman2004-04-291-2/+1
|
* ENH: Add LOCATION to GET_TARGET_PROPERTY. Closes Bug #34 - Add to ↵Andy Cedilnik2004-04-271-3/+44
| | | | GET_TARGET_PROPERTY location of target
* minor bug fixKen Martin2003-05-291-1/+1
|
* ENH: add target properties filesBill Hoffman2002-12-211-0/+45