Brad King
d5719f22c1
ENH: Added support for multiple outputs generated by a single custom command. For Visual Studio generators the native tool provides support. For Xcode and Makefile generators a simple trick is used. The first output is considered primary and has the build rule attached. Other outputs simply depend on the first output with no build rule. During cmake_check_build_system CMake detects when a secondary output is missing and removes the primary output to make sure all outputs are regenerated. This approach always builds the custom command at the right time and only once even during parallel builds.
2006-04-11 11:06:19 -04:00
Bill Hoffman
3c8e899102
ENH: add support for per config target LINK_FLAGS
2006-04-03 12:57:51 -04:00
Ken Martin
00d2546664
ENH: removed unused rules from targets for VS
2006-03-23 13:55:09 -05:00
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Andy Cedilnik
c4156b4531
COMP: Even more global target fixes
2006-02-24 17:35:35 -05:00
Andy Cedilnik
07d0e776ad
BUG: More fixing of support for global target son visual studio
2006-02-24 16:20:44 -05:00
Brad King
7bdec94154
BUG: Add target-level COMPILE_FLAGS to the target not the individual source files. This simplifies the generated files and puts flags in a more logical order (VS6 works, VS7 needs more translation to work).
2006-02-20 14:21:10 -05:00
Brad King
9ba0283870
ENH: If CMAKE_NO_AUTOMATIC_INCLUDE_DIRECTORIES is not set try to approximate in-source build include file behavior in an out-of-source build by adding the build tree directory corresponding to a source tree directory at the beginning of the include path. Also fixed VS6 and VS7 generators to use cmLocalGenerator's computation of include paths. The VS6 generator will now short-path the include directories if the total length is too long in order to try to avoid its truncation limit.
2006-02-18 11:51:23 -05:00
Brad King
916ea2bad2
BUG: Avoid adding unused rules to special targets like ALL_BUILD. Make sure project regeneration rules go only in desired targets.
2006-02-14 16:32:20 -05:00
Brad King
0748f6ae34
COMP: Removed unused variables.
2006-02-09 19:29:09 -05:00
Brad King
1b5e3f4136
BUG: Fixed generation of cmake re-run rules.
2006-02-09 18:42:58 -05:00
Brad King
c6741363de
ENH: Enabled new WORKING_DIRECTORY option to ADD_CUSTOM_COMMAND and ADD_CUSTOM_TARGET on VS 6 generator.
2006-02-08 12:01:21 -05:00
Bill Hoffman
347c5f4b46
ENH: add working directory support
2006-02-08 10:58:36 -05:00
Bill Hoffman
07ef88c985
ENH: add COMPILE_FLAGS to targets
2006-01-25 08:38:06 -05:00
Brad King
22c62c9e65
BUG: Sweeping changes to cleanup computation of target names. This should
...
fix many bugs related to target names being computed inconsistently.
- Centralized computation of a target's file name to a method in
cmTarget. Now that global knowledge is always available the
*_CMAKE_PATH cache variables are no longer needed.
- Centralized computation of link library command lines and link
directory search order.
- Moved computation of link directories needed to link CMake targets
to be after evaluation of linking dependencies.
This also removed alot of duplicate code in which each version had its
own bugs.
This commit is surrounded by the tags
CMake-TargetNameCentralization1-pre
and
CMake-TargetNameCentralization1-post
so make the large set of changes easy to identify.
2006-01-13 18:18:32 -05:00
Bill Hoffman
a91947039a
ENH: for all custom commands that can not be given to a target, add them to all targets in the current makefile
2006-01-09 14:40:31 -05:00
Brad King
05e6c3f3ba
BUG: Fixed OUTPUT_NAME feature for VS6 generator. It was not working for Debug builds and was not paying attention to the executable output path.
2005-08-19 17:57:36 -04:00
Bill Hoffman
3d5a724deb
BUG: revert part of patch that set executable debug prefix as it breaks too much stuff
2005-07-13 16:49:51 -04:00
Bill Hoffman
19ae75a934
BUG: try to fix failed test
2005-07-13 16:20:25 -04:00
Bill Hoffman
aa47caab2d
FIX: apply patch from bug# 1965
2005-07-13 11:21:30 -04:00
Ken Martin
369308ca76
ENH: make LOCATION an computed property of the target and get rid of a bunch of const junk
2005-06-22 09:06:46 -04:00
Ken Martin
fbf40e202a
ENH: add first cut at support for exe with same name as lib
2005-06-16 11:48:43 -04:00
Ken Martin
708828dc37
ENH: removed old convert calls
2005-06-10 08:41:47 -04:00
Brad King
15c7d45ecd
BUG: Fixed ordering of multiple commands in a custom target when implemented as custom commands. Also added support to execute pre-build rules first to be consistent with makefile generator.
2005-04-26 11:08:18 -04:00
Ken Martin
345cf04012
ENH: big change that includes immediate subdir support, removing the notion of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
2005-03-18 10:41:41 -05:00
Brad King
77e22a7d70
BUG: Replaced previous fix with an implementation of properly formatting the custom build code in the generated file.
2005-03-01 10:05:58 -05:00
Ken Martin
a5501b11f6
FIXTHIS THING: fix the bug
2005-02-28 16:11:21 -05:00
Brad King
397dc1cef5
ENH: Converted some ConvertToRelativeOutputPath calls to ConvertToOptionallyRelativeOutputPath in preparation for making ConvertToRelativeOutputPath always convert. Some of these might be able to be switched back but we will first have to test what paths can be relative in the generate VS project files.
2005-02-24 18:35:36 -05:00
Brad King
77194207ce
BUG: Need proper newline argument to ConstructScript call.
2005-02-24 09:20:34 -05:00
Brad King
39af9ee1e4
ENH: Updated implementation of custom commands. Multiple command lines are now supported effectively allowing entire scripts to be written. Also removed extra variable expansions and cleaned up passing of commands through to the generators. The command and individual arguments are now kept separate all the way until the generator writes them out. This cleans up alot of escaping issues.
2005-02-22 10:32:44 -05:00
Bill Hoffman
712f4b3d01
FIX: fixes bugs 1152 and 1154
2005-02-11 14:13:58 -05:00
Bill Hoffman
36c8f1d157
ENH: put error checking for missing linker languages
2004-10-27 10:53:01 -04:00
Bill Hoffman
7cef36c628
ENH: add the ability to generate custom commands for a language that is not supported by an IDE
2004-10-21 14:34:02 -04:00
Bill Hoffman
309b4caf45
BUG: make sure release flags are replaced
2004-09-27 16:33:42 -04:00
Ken Martin
e735351b3f
BUG: fix crash with vs6
2004-09-24 11:35:16 -04:00
Bill Hoffman
9cca063c7d
fix compilation
2004-09-22 16:44:42 -04:00
Bill Hoffman
692ba48c4e
ENH: major changes to support addition of languages from cmake modules directory.
2004-09-22 14:42:05 -04:00
Bill Hoffman
bedb6e899f
BUG: fix for bug 1041, _MBCS sometimes added for UNIICODE which is bad
2004-09-17 15:57:01 -04:00
Bill Hoffman
b5bdf2cb0a
ENH: add better error reporting for file open failures
2004-09-07 16:55:25 -04:00
Bill Hoffman
b41d447935
ENH: use GetRequiredDefinition instead of GetDefinition and crash
2004-08-11 16:58:09 -04:00
Bill Hoffman
d655b65256
ENH: fix rerun of cmake command
2004-05-21 09:51:44 -04:00
Bill Hoffman
70eaddbf8e
BUG: make sure global generate is done when cmakelist file chagnes, also make sure guids are stored in the cache so the .sln file does not change every time
2004-05-20 16:29:09 -04:00
Bill Hoffman
71b57bc454
BUG: fix for bug 769 CMAKE_STANDARD_LIBRARIES now used in ides
2004-04-23 16:26:21 -04:00
Bill Hoffman
3262bc73d3
ENH: allow verbose makefile flag to remove nologo from all commands so you can see them in visual studio 6
2004-04-23 09:12:57 -04:00
Bill Hoffman
7b576866b7
ENH: add support for static library property STATIC_LIBRARY_FLAGS
2004-04-22 16:58:04 -04:00
Bill Hoffman
4e8b76dc93
BUG 178: make top level cmakelist file a source in ALL_BUILD
2004-04-22 09:44:41 -04:00
Andy Cedilnik
b1a7421840
ENH: Styart working on bundles support and abstract WIN32_EXECUTABLE
2004-02-28 18:59:19 -05:00
Ken Martin
cb2b5a188a
fix for long lines with post build rules
2004-01-05 12:53:03 -05:00
Bill Hoffman
0bdb092a01
ENH: add relative paths to visual studio 6 and 7 project files
2003-12-22 16:21:27 -05:00
Andy Cedilnik
72d8bd1e41
BUG: Fix Bug #445 - Same library in multiple projects can cause problems
2003-12-18 13:17:36 -05:00
Bill Hoffman
eff0a824c4
BUG: hack fix for problem of MS vs 6 and custom target commands
2003-11-03 15:57:56 -05:00
Bill Hoffman
f60e16f8ab
BUG: fix for debug libs not using output path
2003-11-03 11:01:48 -05:00
Andy Cedilnik
368d7f7c18
ENH: Attempt to add debug library postfix for visual studio 6
2003-10-31 16:55:49 -05:00
Bill Hoffman
4d2ca08bc7
ENH: allow UNICODE to be specifed in the cxx flags and if not default to MBCS
2003-10-16 10:32:47 -04:00
Bill Hoffman
dd4e8df29a
BUG: make sure exe output path is used for dep hack stuff
2003-08-28 16:22:46 -04:00
Ken Martin
5824302612
bad evil nasty ken
2003-08-28 16:10:44 -04:00
Ken Martin
2b2a9d73da
fix to executable depends for custom commands
2003-08-28 16:06:06 -04:00
Bill Hoffman
58d9cfa141
BUG: fix bug with custom commands depending on executables
2003-08-28 14:52:26 -04:00
Ken Martin
13b60f71f2
fid post build iue on vs6 utility targets
2003-08-08 10:40:11 -04:00
Bill Hoffman
6e494f9bce
BUG: when creating rule files remove the IntDir
2003-07-31 16:43:53 -04:00
Brad King
48aedb2ba3
ENH: Fully implemented SOURCE_GROUP command.
2003-07-23 15:32:54 -04:00
Ken Martin
840389b64f
moved depend code into cmTarget
2003-06-24 15:24:30 -04:00
Brad King
38482b46d1
ENH: Merged use of the kwsys RegularExpression class instead of cmRegularExpression.
2003-06-23 14:10:12 -04:00
Ken Martin
40a985a38d
fix for bad assumption
2003-06-17 16:54:49 -04:00
Ken Martin
7885db5eaf
fix for bad assumption
2003-06-17 15:13:38 -04:00
Ken Martin
f76d01d56a
fix for vs6 rule files
2003-06-16 10:20:48 -04:00
Ken Martin
703242071f
more crazt changes source files now must match with full path
2003-06-05 14:40:25 -04:00
Ken Martin
050190d455
minor fix
2003-06-04 18:50:48 -04:00
Bill Hoffman
5be2ec1d47
bug fix for vs6 custom commands
2003-06-04 13:55:15 -04:00
Bill Hoffman
8eda3791e7
bug fix
2003-06-04 10:13:01 -04:00
Ken Martin
904fb91a42
compielr warnings
2003-06-04 08:42:58 -04:00
Ken Martin
ba68f771b3
yikes added new custom command support
2003-06-03 10:30:23 -04:00
Bill Hoffman
25f9b28e28
BUG: add linker flags for modules
2003-05-05 10:23:25 -04:00
Andy Cedilnik
4d9b5d5ef1
Remove warnings
2003-03-27 15:52:29 -05:00
Andy Cedilnik
a9875aa62f
Implement GetLineFromStream that actually works and use it instead of getline
2003-03-27 12:24:30 -05:00
Bill Hoffman
d4d2779542
BUG: fix crash with force cxx type
2003-03-17 09:29:10 -05:00
Bill Hoffman
0afb1fa1aa
force cxx compiler for cxx files
2003-03-17 09:15:57 -05:00
Bill Hoffman
8f6b7e7bad
use c flags with c and not cxx flags, also force c++ for c files
2003-03-14 12:00:22 -05:00
Brad King
cde384411d
Several fixes/improvements:
...
- Fixed CollapseFullPath to work on relative paths with base paths
not in the current working directory.
- INCLUDE command now supports relative paths (using above fix).
- Added ABSOLUTE option to GET_FILENAME_COMPONENT command to
unwind symlinks and relative paths.
- Fixed libName_EXPORTS macro definition to be valid C identifier.
- Added DEFINE_SYMBOL target propterty for customizing the export symbol.
- Implemented LINK_FLAGS target propterty for libraries in VC6 and VC7.
Several of these fixes were contributed by Gareth Jones.
2003-02-07 14:04:16 -05:00
Ken Martin
61da8f64bf
added option to shut off automatic rebuilding
2003-02-06 15:18:43 -05:00
Ken Martin
93265d84be
fixed spelling mistake
2003-01-22 11:44:02 -05:00
Bill Hoffman
b9d5389bca
BUG: fix CMAKE_C_FLAGS for visual studio 6, and add a test case
2003-01-13 09:30:48 -05:00
Andy Cedilnik
45b7a5befc
Add space between arguments
2003-01-13 08:14:11 -05:00
Andy Cedilnik
01151ab795
Use C flags too. Not exactly the right solution but it will have to do for now.
2003-01-12 10:50:29 -05:00
Ken Martin
18391be145
better handling of Module
2002-12-17 12:56:04 -05:00
Brad King
6e10f6cc75
BUG: Fixed quotes in output paths.
2002-12-16 09:39:06 -05:00
Brad King
3348131819
ENH: Added source file property OBJECT_DEPENDS to support generated header files included in non-generated sources.
2002-12-13 16:16:48 -05:00
Andy Cedilnik
682e2c7b8b
Add check so that java projects build without C++
2002-12-11 12:09:52 -05:00
Andy Cedilnik
ee548d8fd8
Add support for comments on custom commands in visual studio 6
2002-12-10 17:52:45 -05:00
Bill Hoffman
96189f79d5
ENH: unify EnableLanguage across all generators
2002-12-05 13:44:11 -05:00
Andy Cedilnik
be986c6cae
Revert back to 1.5, since it is fixed in ConvertToOutputPath and this breaks Windows 98
2002-11-22 15:44:10 -05:00
Andy Cedilnik
b8a1b1e9e7
Fix for network paths with space
2002-11-21 12:26:54 -05:00
Brad King
1f6a3c67b1
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
2002-10-23 18:03:27 -04:00
Ken Martin
789cc71855
Fix a bug in generator. This one is good: This bug is only present on Windows 98, but since RunCommand did not work, it never showed on the dashboard... In any case commands in Visual studio 6 should be in windows style slashes
2002-10-01 13:04:19 -04:00
Ken Martin
2d9fbbd94c
updated to use ConfigureFinalPass
2002-09-15 09:42:29 -04:00
Ken Martin
3abb9e240d
compiler warnings
2002-09-08 10:17:03 -04:00
Ken Martin
49aebe6c99
new arch
2002-09-04 15:23:56 -04:00