Brad King
ba7780a3c4
ENH: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to not create 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.
2007-05-23 15:40:12 -04:00
Brad King
c288da754a
BUG: Target names in the COMMAND part of a custom command should not create 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.
2007-05-23 13:27:00 -04:00
Alexander Neundorf
526b72e12c
COMP: don't user string::clear(), fix warnings about unused variables
...
Alex
2007-05-23 08:24:29 -04:00
Alexander Neundorf
4878c00905
ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
...
"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
2007-05-22 10:24:59 -04:00
Brad King
51fe906ab7
BUG: An empty configuration name is equivalent to no configuration.
2007-05-17 11:18:23 -04:00
Alexander Neundorf
4b33244ea5
BUG: fix segfault when trying to get the object file for a sourcefile in an
...
unknown language via GET_TARGET_PROPERTY(), as reported by Trevor Kellaway
Alex
2007-05-15 16:06:18 -04:00
Alexander Neundorf
e4b5de6377
STYLE: fix line lengths
...
Alex
2007-05-14 11:23:37 -04:00
Alexander Neundorf
362f81981e
STYLE: fix line length
...
Alex
2007-05-10 11:38:23 -04:00
Alexander Neundorf
e701ef77d8
STYLE: functions use upper case for the first letter
...
Alex
2007-05-09 09:35:59 -04:00
Alexander Neundorf
7f11536704
ENH: now target names can be used in add_custom_command() and
...
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
2007-05-09 08:25:45 -04:00
Bill Hoffman
9323a27989
ENH: initial support for creation of frameworks on Mac
2007-05-08 10:32:54 -04:00
Ken Martin
8b0c61c322
ENH: added internal target property for the name of the project file
2007-04-10 09:54:01 -04:00
Brad King
af95f61d76
ENH: Created method cmTarget::GetExportMacro to centralize computation of 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.
2007-03-27 23:13:25 -04:00
Brad King
5a32aa5919
ENH: Added target property ENABLE_EXPORTS for executable targets. It 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 .
2007-03-22 09:45:25 -04:00
Brad King
fc7c433463
ENH: Added support for import libraries created by executable and module 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.
2007-03-19 10:00:36 -04:00
Bill Hoffman
5891ba16ce
ENH: add project to target map, not used yet, but created
2007-03-13 14:23:08 -04:00
Brad King
92ff60b6a6
ENH: Added target properties ARCHIVE_OUTPUT_DIRECTORY, 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.
2007-03-09 15:14:27 -05:00
Brad King
528f60f4a6
ENH: Added implib option to cmTarget::GetDirectory to support a separate directory containing the import library. This is an incremental step for bug#4210.
2007-03-09 09:30:16 -05:00
Brad King
01dc699d82
ENH: Combined cmTarget::GetDirectory and cmTarget::GetOutputDir since they are nearly the same. This is another step for bug#2240.
2007-03-08 15:33:19 -05:00
Brad King
1a734f238a
COMP: Fixed enumeration-not-used warning in switch.
2007-03-08 15:10:20 -05:00
Brad King
33ee83714d
ENH: Replaced LibraryOutputPath and ExecutableOutputPath variables in 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.
2007-03-08 14:57:28 -05:00
Andy Cedilnik
8ad3430931
ENH: Make EXCLUDE_FROM_ALL a target and directory properties. Also, make IsInAll use EXCLUDE_FROM_ALL. Also, enable the test that tests this
2007-02-23 09:46:27 -05:00
Ken Martin
84315a7d57
BUG: fix accidental checkin
2007-02-19 14:32:36 -05:00
Ken Martin
09699018cc
ENH: turn on spaces in path test
2007-02-19 13:20:27 -05:00
Bill Hoffman
f7cd9f76ce
STYLE: fix line length issues
2007-02-17 08:46:25 -05:00
Bill Hoffman
ca0230a33e
ENH: check in initial conv library stuff
2007-02-16 16:12:17 -05:00
Brad King
4bc0fd0941
ENH: Added cmTarget::GetPDBName method to simplify computation of .pdb file name for a target.
2007-02-01 16:54:49 -05:00
Brad King
712345ffc4
BUG: The .pdb file generated for a library or executable should match the real file name used for the target. This addresses bug#3277.
2007-02-01 09:57:24 -05:00
Ken Martin
1dd5db0235
COMP: fix some warnings and style issues
2006-12-08 09:27:52 -05:00
Ken Martin
27379d7b08
ENH: make properties a bit more formal with documentation and chaining
2006-12-07 09:45:32 -05:00
Bill Hoffman
26b527ac0f
ENH: fix bug in full path to target depends stuff
2006-12-06 23:05:10 -05:00
Bill Hoffman
5ff037e894
BUG: better fix for .dll.lib problem
2006-11-30 17:32:46 -05:00
Ken Martin
2915f24274
COMP: fix compile issue on Sun hopefully
2006-11-29 17:10:29 -05:00
Ken Martin
d6219588c0
COMP: fix compile issue on Sun
2006-11-29 15:45:49 -05:00
Ken Martin
daa6d2bc04
ENH: updated handling of debug and optimized target link libraries
2006-11-29 11:00:17 -05:00
Bill Hoffman
0954696e3e
ENH: fix line length problem
2006-11-27 12:14:16 -05:00
Bill Hoffman
b3d5e0fa2d
ENH: fix crash in plplot build
2006-11-27 12:11:27 -05:00
Bill Hoffman
9baa760315
BUG: fix problem when a target name is the same as the output of a custom command
2006-11-25 10:59:26 -05:00
Ken Martin
786fdbc196
ENH: fix a bug with useing debuf optimized libs from other builds
2006-11-16 10:57:00 -05:00
Brad King
b155f3aa1c
ENH: Adding image version number (major.minor) property to windows binaries. Default is 0.0, but the VERSION target property may change the value. Windows now has first-class support for dll and exe versioning. This addresses bug#1219.
2006-10-16 18:17:14 -04:00
Brad King
e0a662a3dd
ENH: Adding version number to the name of a DLL built in cygwin but not the import library. This addresses bug#3571.
2006-10-05 16:30:47 -04:00
Brad King
fdcc888c56
ENH: Added support for getting a target's location on a per-configuration basis (ex. DEBUG_LOCATION). This does not fix but helps with bug#3250.
2006-09-29 16:42:58 -04:00
Brad King
441d208bb3
ENH: Added target property CLEAN_DIRECT_OUTPUT to not clean all forms of a library name so that static and shared libraries of the same name can coexist in a single build directory.
2006-08-03 09:42:48 -04:00
Brad King
ab61137eb1
COMP: Fix and/or disable warnings for Borland 5.6 build.
2006-08-01 11:38:42 -04:00
Brad King
b4542762a7
ENH: Added target property INSTALL_RPATH_USE_LINK_PATH to append the linker search path directories not inside the project to the INSTALL_RPATH automatically. The property is initialized by the variable CMAKE_INSTALL_RPATH_USE_LINK_PATH when the target is created.
2006-06-15 10:12:19 -04:00
Brad King
932e3524fc
ENH: Changing shared library versioned file names on OSX to conform to that platform's convention.
2006-06-05 13:45:43 -04:00
Bill Hoffman
0f2f074978
ENH: fix for vtk 4.4 and other projects that may try to link to a module
2006-05-19 13:02:12 -04:00
Ken Martin
cac30b5ff8
STYLE: fix line length
2006-05-12 14:12:13 -04:00
Brad King
323dc3a89a
ENH: Added information about target needing a source file when one cannot be found.
2006-05-05 11:46:20 -04:00
Brad King
392137b6d7
ENH: Added <config>_OUTPUT_NAME target property to allow the output name to be set on a per-configuration basis.
2006-04-18 10:56:28 -04:00