Commit Graph

9 Commits

Author SHA1 Message Date
Brad King d1aa17a7b0 ENH: Remove CMAKE_ANSI_CFLAGS from tests
As of CMake 2.6 this variable is not defined, and the ANSI flags for the
HP compiler are simply hard-coded in the default C flags.
2009-07-08 11:41:48 -04:00
Brad King 5f4686920d BUG: Fix CMAKE_CURRENT_LIST_FILE in macros
The value of CMAKE_CURRENT_LIST_FILE is supposed to be the list file
currently being executed.  Before macros were introduced this was always
the context of the argument referencing the variable.

Our original implementation of macros replaced the context of command
arguments inside the macro with that of the arguments of the calling
context.  This worked recursively, but only worked when macros had at
least one argument.  Furthermore, it caused parsing errors of the
arguments to report the wrong location (calling context instead of line
with error).

The commit "Improve context for errors in macros" fixed the latter bug
by keeping the lexical context of command arguments in macros.  It broke
evaluation of CMAKE_CURRENT_LIST_FILE because the calling context was no
longer preserved in the argument referencing the variable.  However,
since our list file processing now maintains the proper value of
CMAKE_CURRENT_LIST_FILE with dynamic scope we no longer need the context
of the argument and can just evaluate the variable normally.
2009-03-25 10:37:04 -04:00
Ken Martin ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Ken Martin df1a77c225 ENH: some cleanup, condensing some tests, removing arguments that were not needed but rather were cut and paste copies etc 2007-05-18 15:11:20 -04:00
Brad King 9e29a742a9 BUG: EQUAL -> STREQUAL for string comparison. 2006-10-25 10:58:30 -04:00
Andy Cedilnik 10b6e2a621 ENH: Add C++ test too 2005-07-31 23:05:05 -04:00
Andy Cedilnik e898324778 ENH: Add a test for C source file like AC_TRY_COMPILE 2005-07-31 23:02:22 -04:00
Andy Cedilnik 6c1a83609e ENH: Fix test on HP 2005-06-17 08:45:01 -04:00
Andy Cedilnik c34696021d ENH: Add test of macro 2005-06-16 14:56:28 -04:00