summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
Commit message (Collapse)AuthorAgeFilesLines
* BUG: For imported target directory, do not return pointer to freed memory.Brad King2007-11-211-3/+3
|
* BUG: fix undefined property FRAMEWORKKen Martin2007-10-301-0/+8
|
* BUG: Fix the dashboards! Put it back the way it was so it always creates the ↵David Cole2007-10-121-1/+1
| | | | target directory at configure time. Figure out how to avoid it for the framework case on the Mac/Xcode later...
* ENH: Finish up the Framework creation code restructuring. Frameworks build ↵David Cole2007-10-101-8/+102
| | | | and install now. More work needed on the packaging step. See Tests/Framework for example use.
* ENH: Added XCODE_ATTRIBUTE_<an-attribute> property to allow direct setting ↵Brad King2007-09-101-0/+6
| | | | of Xcode target attributes in generated projects. For example, one may set the prefix header property and the corresponding precompiled option to do precompiled headers.
* STYLE: fix typoAlexander Neundorf2007-08-091-1/+1
| | | | Alex
* ENH: Added warning when an install rule is created from an EXCLUDE_FROM_ALL ↵Brad King2007-08-031-2/+3
| | | | target. Added a foo/preinstall version of targets that need relinking so that exclude-from-all targets can be manually relinked for installation.
* BUG: Target exclusion-from-all tests should always use the root local ↵Brad King2007-08-031-2/+2
| | | | generator associated with the all target being tested.
* ENH: Added cmTarget::GetLanguages method to centralize computation of the ↵Brad King2007-08-021-8/+14
| | | | list of languages compiled in a target.
* BUG: Only pay attention to the FRAMEWORK target property for SHARED library ↵David Cole2007-08-011-2/+4
| | | | targets
* BUG: <CONFIG>_LOCATION property should use the config name in the directory ↵Brad King2007-08-011-5/+11
| | | | and not $(OutDir). This addresses bug#5363.
* ENH: second try for handling the linker language with integer priority ↵Alexander Neundorf2007-07-121-42/+40
| | | | | | values (returning a pointer to a string on the stack is no good idea) Alex
* COMP: revert last commit for now, broke Visual StudioAlexander Neundorf2007-07-111-41/+43
| | | | Alex
* ENH: CMAKE_<LANG>_LINKER_PREFERENCE is now an integer priority, not aAlexander Neundorf2007-07-111-43/+41
| | | | | | | | | | | | | | | | | | | two-step priority (None or Prefered) Current order: ASM 0, C 10, Fortran 20, CXX 30, Java 40 This is the same order as automake choses: http://www.gnu.org/software/automake/manual/html_node/How-the-Linker-is-Chosen.html This change should be backward compatible: if there is a project using fortran and CXX, they had to set the LINKER_LANGUAGE explicitely, otherwise cmake complained (but still generated the project files). Explicitely setting the linker language still overrides automatic detection. If somebody has a custom language for cmake and the PREFERENCE starts with "P", its changed to 100, which gives it preference over all other languages (except the other custom languages which have also "Prefered"). "None" is converted to 0. Alex
* STYLE: Fixed line-too-long, fixed indentation, removed trailing whitespace, ↵Brad King2007-07-021-180/+211
| | | | added function separator comment lines.
* ENH: here we really want only non-imported targets, as discussed with BradAlexander Neundorf2007-06-271-2/+2
| | | | Alex
* BUG: handle dependencies to imported targets better: don't create aAlexander Neundorf2007-06-211-2/+2
| | | | | | | | | dependency if the target name was not listed in DEPENDS, if it was listed in DEPENDS, create a dependency to the file Seems to work, but have to check with Brad. Alex
* ENH: Merging changes from branch CMake-SourceFile2-b between tagsBrad King2007-06-181-247/+224
| | | | | | | | | | | | | | | | | | | | | | | | CMake-SourceFile2-bp and CMake-SourceFile2-b-mp1 to trunk. This commit is surrounded by tags CMake-SourceFile2-b-mp1-pre and CMake-SourceFile2-b-mp1-post on the trunk. The changes re-implement cmSourceFile and the use of it to allow instances to be created much earlier. The use of cmSourceFileLocation allows locating a source file referenced by a user to be much simpler and more robust. The two SetName methods are no longer needed so some duplicate code has been removed. The strange "SourceName" stuff is gone. Code that created cmSourceFile instances on the stack and then sent them to cmMakefile::AddSource has been simplified and converted to getting cmSourceFile instances from cmMakefile. The CPluginAPI has preserved the old API through a compatibility interface. Source lists are gone. Targets now get real instances of cmSourceFile right away instead of storing a list of strings until the final pass. TraceVSDependencies has been re-written to avoid the use of SourceName. It is now called TraceDependencies since it is not just for VS. It is now implemented with a helper object which makes the code simpler.
* ENH: Moved link library related code from GenerateSourceFilesFromSourceLists ↵Brad King2007-05-281-8/+13
| | | | to AnalyzeLibDependencies to make the former do no more than what its name says.
* ENH: Removed "Used" mark from custom commands. It is no longer needed or ↵Brad King2007-05-281-10/+0
| | | | checked by any generators.
* ENH: Made cmTarget::GetSourceFiles method return reference to const so ↵Brad King2007-05-281-1/+1
| | | | addition of cmSourceFile pointers must be done with an access method in cmTarget.
* BUG: don't use non-imported target when cross compiling as commands in ↵Alexander Neundorf2007-05-241-3/+3
| | | | | | | | custom commands STYLE: remove now invalid comments, use this-> Alex
* ENH: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to not create ↵Brad King2007-05-231-6/+6
| | | | targets. No targets of type cmTarget::INSTALL_FILES or cmTarget::INSTALL_PROGRAMS are created, so we do not need to check for them everywhere anymore.
* BUG: Target names in the COMMAND part of a custom command should not create ↵Brad King2007-05-231-38/+32
| | | | a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created. Target names in a DEPENDS should do both a target-level and file-level dependency. Updated the BuildDepends test to check that this works.
* COMP: don't user string::clear(), fix warnings about unused variablesAlexander Neundorf2007-05-231-4/+4
| | | | Alex
* ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates anAlexander Neundorf2007-05-221-39/+141
| | | | | | | | | | "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
* BUG: An empty configuration name is equivalent to no configuration.Brad King2007-05-171-1/+1
|
* BUG: fix segfault when trying to get the object file for a sourcefile in anAlexander Neundorf2007-05-151-12/+15
| | | | | | unknown language via GET_TARGET_PROPERTY(), as reported by Trevor Kellaway Alex
* STYLE: fix line lengthsAlexander Neundorf2007-05-141-4/+6
| | | | Alex
* STYLE: fix line lengthAlexander Neundorf2007-05-101-2/+4
| | | | Alex
* STYLE: functions use upper case for the first letterAlexander Neundorf2007-05-091-5/+5
| | | | Alex
* ENH: now target names can be used in add_custom_command() andAlexander Neundorf2007-05-091-2/+52
| | | | | | | | | | add_custom_target() as COMMAND, and cmake will recognize them and replace them with the actual output path of these executables. Also the dependency will be added automatically. Test included. ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(), so it is done now in one central place Alex
* ENH: initial support for creation of frameworks on MacBill Hoffman2007-05-081-1/+18
|
* ENH: added internal target property for the name of the project fileKen Martin2007-04-101-0/+6
|
* ENH: Created method cmTarget::GetExportMacro to centralize computation of ↵Brad King2007-03-281-0/+27
| | | | the export symbol name. This removes duplicate code from all the generators. Also enabled the export definition for executable targets with the ENABLE_EXPORTS property set.
* ENH: Added target property ENABLE_EXPORTS for executable targets. It ↵Brad King2007-03-221-0/+17
| | | | enables the executables for linking by loadable modules that import symbols from the executable. This finishes the executable import library support mentioned in bug #4210.
* ENH: Added support for import libraries created by executable and module ↵Brad King2007-03-191-18/+59
| | | | targets. The module import libraries should never be used but some windows compilers always create them for .dll files since there is no distinction from shared libraries on that platform. The executable import libraries may be used to create modules that when loaded bind to symbols from the executables. This is an enhancement related to bug#4210 though not requested by it explicitly.
* ENH: add project to target map, not used yet, but createdBill Hoffman2007-03-131-3/+2
|
* ENH: Added target properties ARCHIVE_OUTPUT_DIRECTORY, ↵Brad King2007-03-091-28/+134
| | | | LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY. If set these override EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH for a specific target. They can be used to distribute target files in the build tree with the same granularity that the INSTALL command provides for the install tree. This addresses bug#2240 and bug#4210.
* ENH: Added implib option to cmTarget::GetDirectory to support a separate ↵Brad King2007-03-091-6/+15
| | | | directory containing the import library. This is an incremental step for bug#4210.
* ENH: Combined cmTarget::GetDirectory and cmTarget::GetOutputDir since they ↵Brad King2007-03-081-2/+6
| | | | are nearly the same. This is another step for bug#2240.
* COMP: Fixed enumeration-not-used warning in switch.Brad King2007-03-081-13/+18
|
* ENH: Replaced LibraryOutputPath and ExecutableOutputPath variables in ↵Brad King2007-03-081-28/+48
| | | | Makefile and VS generators to instead ask each target for its output path. This significantly reduces total code size and centralizes previously duplicate code. It is also a step towards bug#2240.
* ENH: Make EXCLUDE_FROM_ALL a target and directory properties. Also, make ↵Andy Cedilnik2007-02-231-4/+4
| | | | IsInAll use EXCLUDE_FROM_ALL. Also, enable the test that tests this
* BUG: fix accidental checkinKen Martin2007-02-191-50/+6
|
* ENH: turn on spaces in path testKen Martin2007-02-191-2/+49
|
* STYLE: fix line length issuesBill Hoffman2007-02-171-1/+2
|
* ENH: check in initial conv library stuffBill Hoffman2007-02-161-3/+63
|
* ENH: Added cmTarget::GetPDBName method to simplify computation of .pdb file ↵Brad King2007-02-011-0/+11
| | | | name for a target.
* BUG: The .pdb file generated for a library or executable should match the ↵Brad King2007-02-011-8/+22
| | | | real file name used for the target. This addresses bug#3277.