Brad King
4db6658d8f
BUG: Make sure context info is always initialized
...
This adds a missing default constructor to cmListFileContext that makes
sure the line number is initialized to zero. A zero line number will
indicate a generated context.
2008-10-11 12:02:50 -04:00
Brad King
f7f03347a6
ENH: Improve new error/warning message generation
...
- Add cmListFileBacktrace to record stack traces
- Move main IssueMessage method to the cmake class instance
(make the backtrace an explicit argument)
- Change cmMakefile::IssueMessage to construct a backtrace
and call the cmake instance version
- Record a backtrace at the point a target is created
(useful later for messages issued by generators)
2008-03-13 13:48:57 -04:00
Brad King
680104a490
ENH: New format for warning and error messages
...
- Add cmMakefile methods IssueError and IssueWarning
- Maintain an explicit call stack in cmMakefile
- Include context/call-stack info in messages
- Nested errors now unwind the call stack
- Use new mechanism for policy warnings and errors
- Improve policy error message
- Include cmExecutionStatus pointer in call stack
so that errors deeper in the C++ stack under
a command invocation will become errors for the
command
2008-03-07 08:40:36 -05:00
Ken Martin
adddcea5d7
BUG: change the handling of CMAKE_MINIMUM_REQUIRED and BACKWARDS_COMPATIBILITY and extend the documentaiton quite a bit
2008-03-06 10:57:59 -05:00
Alexander Neundorf
cd0cd47416
BUG: const char* FilePath could point to a non-existent std::string for
...
commands used in a macro, using a std::string instead copies the contents so
this works (correct error message)
Alex
2007-05-11 08:36:05 -04:00
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
2006-03-15 11:02:08 -05:00
Andy Cedilnik
892a439fad
BUG: Remove some old legacy code and remove memory leak
2006-03-08 10:52:29 -05:00
Andy Cedilnik
4259971961
ENH: Since list file cache does not make much sense any more (because of proper list file parsing), and it actually adds unnecessary complications and make ctest scripting not work, take it out
2006-02-07 08:49:42 -05:00
Brad King
b6da1d1271
ENH: Added support for special variables CMAKE_CURRENT_LIST_FILE and CMAKE_CURRENT_LIST_LINE that evaluate to the file name and line number in which they appear. This implements the feature request from bug 1012.
2004-08-04 10:45:11 -04:00
Brad King
00ae7ea261
ENH: Using lex-based tokenizer and a simple recursive-descent parser in place of the old hand-coded parser for CMake listfiles.
2003-12-08 13:36:59 -05:00
Brad King
ad5d35c6cf
ERR: Added operator != for SGI.
2002-12-17 14:55:31 -05:00
Brad King
54541bd40a
ENH: Improved filename/line number reporting in error message. Macro invocations now chain up the error message.
2002-12-12 11:36:28 -05:00
Brad King
4888c088ae
ENH: Moved ExpandListVariables out of individual commands. Argument evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
2002-12-11 18:13:33 -05:00
Bill Hoffman
27110975c2
ENH: add PROJECT command if there is not one
2002-12-02 15:30:59 -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
Andy Cedilnik
0301b8366b
Add a way to remove files from cache
2002-09-19 14:34:15 -04:00
Ken Martin
499bd45d4d
removed shared lib support
2002-08-23 16:13:34 -04:00
Ken Martin
34c7c1b78d
made CMakeLib shared on windows
2002-08-21 11:57:12 -04:00
Will Schroeder
a6a43d5320
ENH:Updated copyright
2002-01-21 15:30:43 -05:00
Bill Hoffman
9438a5965a
initialize class
2001-09-14 15:18:19 -04:00
Bill Hoffman
85d241faa0
remove warning
2001-08-28 18:35:22 -04:00
Bill Hoffman
5edd7673e1
ENH: add caching for the input CMakeList.txt files, 2X speed up
2001-08-28 18:28:31 -04:00