summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
Commit message (Collapse)AuthorAgeFilesLines
* BUG: fix issue with -D and cache forceBill Hoffman2008-11-211-2/+8
|
* BUG: Finish fix to old DEFINITIONS propertyBrad King2008-10-091-0/+2
| | | | | | | The cmMakefile::DefineFlagsOrig ivar was created to help preserve the old DEFINITIONS property behavior now that definitions are moved from DefineFlags to the COMPILE_DEFINITIONS directory property. This fixes propagation of the original value into subdirectories.
* ENH: Return utility target after creationBrad King2008-10-091-6/+8
| | | | | | After creating a utility target with AddUtilityCommand, return a pointer to the cmTarget instance so the caller may further modify the target as needed.
* STYLE: fix line length stuff for KWStyleBill Hoffman2008-10-011-1/+2
|
* BUG: Skip a command if its arguments fail to parseBrad King2008-09-241-1/+2
| | | | | | | | If the arguments to a command fail to parse correctly due to a syntax error, the command should not be invoked. This avoids problems created by processing of commands with bad arguments. Even though the build system will not be generated, the command may affect files on disk that persist across CMake runs.
* ENH: Improve argument parsing error messagesBrad King2008-09-241-15/+47
| | | | | | | | | | | | | | Previously error messages produced by parsing of command argument variable references, such as bad $KEY{VAR} syntax or a bad escape sequence, did not provide good context information. Errors parsing arguments inside macro invocations gave no context at all. Furthermore, some errors such as a missing close curly "${VAR" would be reported but build files would still be generated. These changes teach CMake to report errors with good context information for all command argument parsing problems. Policy CMP0010 is introduced so that existing projects that built despite such errors will continue to work.
* ENH: Add unset() command.Brad King2008-08-251-0/+5
| | | | | | | | This introduces the unset() command to make it easy to unset CMake variables, environment variables, and CMake cache variables. Previously it was not even possible to unset ENV or CACHE variables (as in completely remove them). Changes based on patch from Philip Lowman. See issue #7507.
* BUG: Linking to modules is for 2.2 compat onlyBrad King2008-08-191-8/+11
| | | | | | | | The compatibility check to allow linking to modules should test for CMake 2.2, not the unreleased 2.3. See issue #7500. Furthermore, the message should be more clear about fixing the code instead of setting CMAKE_BACKWARDS_COMPATIBILITY unless one is just trying to build an existing project.
* ENH: Improve errors when a policy is REQUIREDBrad King2008-08-181-61/+77
| | | | | | In the future some policies may be set to REQUIRED_IF_USED or REQUIRED_ALWAYS. This change clarifies the error messages users receive when violating the requirements.
* ENH: add a --trace optionBill Hoffman2008-07-311-0/+15
|
* BUG: Fix computed directory property DEFINITIONS.Brad King2008-06-261-21/+28
| | | | | | | | | | - The property tracks the value formed by add_definitions and remove_definitions command invocations. - The string should be maintained for use in returning for the DEFINITIONS property value. - It is no longer used for any other purpose. - The DEFINITIONS property was recently documented as deprecated. - See bug #7239.
* ENH: Update documentation of computed directory properites.Brad King2008-06-261-1/+59
| | | | | | - Fix documentation of get_directory_property command. - Convert its list of computed directory properties to be defined/documented directory properties.
* BUG: Fix PARENT_DIRECTORY property in top-level to not crash.Brad King2008-06-261-2/+4
|
* BUG: fix for bug 7239, DEFINITIONS property not backwards compatible to 2.4Bill Hoffman2008-06-251-2/+15
|
* ENH: Allow custom commands with VERBATIM option to have $(SomeVar) make ↵Brad King2008-06-041-0/+2
| | | | variable replacement.
* COMP: fix warningKen Martin2008-06-021-4/+4
|
* ENH: make end of file checking for close if, foreach, macro, functions etc ↵Ken Martin2008-05-311-8/+9
| | | | enabled. Not sure why it was disabled to start with, but I suspect I will find out. In reponse to Bill email about a ctest -S script with a function that waqs not closed. Closure was only checked for regular listfiles not other files.
* ENH: Allow users to specify macro-like #include line transforms for ↵Brad King2008-05-141-0/+26
| | | | | | | | dependency scanning. - Define IMPLICIT_DEPENDS_INCLUDE_TRANSFORM property on targets and directories. - Make the directory version inherited. - See issue #6648.
* BUG: Remove check for files written by file(WRITE) being loaded.Brad King2008-04-301-27/+0
| | | | | | | | | | | | - CMake 1.8 and below did not do the check but could get in infinite loops due to the local generate step. - CMake 2.0 added the check but failed to perform it in directories with no targets (see bug #678). - CMake 2.2 removed the local generate which fixed the problem but did not remove the check. - Between CMake 2.4 and 2.6.0rc6 the check was fixed to work even when no targets appear in a directory (see bug #6923). - Bottom line: the check is no longer needed.
* ENH: add support for Intel Fortran Visual studio IDEBill Hoffman2008-04-301-1/+1
|
* ENH: In cmMakefile::IssueMessage report the directory-level context even if ↵Brad King2008-04-291-4/+13
| | | | no list file is currently being processed.
* ENH: Allow policy CMP0000 to be set explicitlyBrad King2008-03-311-11/+56
| | | | | | | | - Message for missing cmake_minimum_required is not issued until the end of processing the top CMakeLists.txt file - During processing a cmake_policy command may set behavior - OLD behavior is to silently ignore the problem - NEW behavior is to issue an error instead of a warning
* BUG: Fix impl of CMP0005 regex to match value-less definitions.Brad King2008-03-131-1/+1
|
* ENH: Add policy CMP0005 to decide whether add_definitions should escape defs.Brad King2008-03-131-5/+33
|
* ENH: Improve error message when invalid policy is given.Brad King2008-03-131-4/+5
|
* ENH: Improve new error/warning message generationBrad King2008-03-131-91/+31
| | | | | | | | | | - 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)
* ENH: change CMP_ to CMPKen Martin2008-03-131-5/+5
|
* ENH: remove abort calls and replace with an IssueMessage INTERANL_ERROR, ↵Bill Hoffman2008-03-131-1/+8
| | | | better to not crash on the end user.
* STYLE: fix line lenBill Hoffman2008-03-121-2/+4
|
* ENH: fix warning message a bitBill Hoffman2008-03-111-1/+5
|
* ENH: add a way to suppress the new policy warnings, still need ccmake and gui'sBill Hoffman2008-03-111-2/+20
|
* ENH: add enum to IssueMessageBill Hoffman2008-03-111-20/+10
|
* ENH: Enforce matching PUSH/POP calls for cmake_policy.Brad King2008-03-101-7/+19
|
* ENH: Add directory-level context information to error/warning messages when ↵Brad King2008-03-101-0/+15
| | | | no call stack is present.
* COMP: Avoid using operator-> on const_reverse_iterator to help old compilers.Brad King2008-03-081-3/+3
|
* ENH: Cleanup policy generic documentation. Cleanup some policy ↵Brad King2008-03-081-3/+4
| | | | error/warning messages.
* ENH: Finish creating, documenting, and enforcing policy CMP_0002.Brad King2008-03-071-30/+3
|
* ENH: In cmMakefile::IssueMessage use cmDocumentationFormatterText to format ↵Brad King2008-03-071-30/+9
| | | | the message nicely.
* ENH: Improve handling of old-style compatibility.Brad King2008-03-071-19/+24
| | | | | | | | | | | | | | | | | | | - Remove CMP_0001 (no slash in target name) and restore old CMAKE_BACKWARDS_COMPATIBILITY check for it - Replace all checks of CMAKE_BACKWARDS_COMPATIBILITY with cmLocalGenerator::NeedBackwardsCompatibility calls - Create new CMP_0001 to determine whether or not CMAKE_BACKWARDS_COMPATIBILITY is used. (old = use, new = ignore) - Show CMAKE_BACKWARDS_COMPATIBILITY in cache only when CMP_0001 is set to OLD or WARN - Update documentation of cmake_policy and cmake_minimum_required to indicate their relationship and the 2.4 version boundary - When no cmake policy version is set in top level makefile implicitly call cmake_policy(VERSION 2.4) which restores CMAKE_BACKWARDS_COMPATIBILITY and other 2.4 compatibility - Fix tests MakeClean and Preprocess to call cmake_policy(VERSION 2.6) because they depend on new policies
* BUG: Do not produce whitespace-only lines when indenting messages in new ↵Brad King2008-03-071-1/+1
| | | | error/warning format.
* ENH: New format for warning and error messagesBrad King2008-03-071-49/+163
| | | | | | | | | | | | | - 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
* BUG: change the handling of CMAKE_MINIMUM_REQUIRED and ↵Ken Martin2008-03-061-6/+9
| | | | BACKWARDS_COMPATIBILITY and extend the documentaiton quite a bit
* ENH: Improve cmake_policy command signatureBrad King2008-03-051-6/+9
| | | | | - Replace NEW and OLD modes with a SET mode for clarity - Enforce VERSION argument validity (major.minor[.patch])
* BUG: some fixes, still a few to goKen Martin2008-03-051-1/+3
|
* BUG: Make sure at least one policy stack entry is created for every ↵Brad King2008-03-041-1/+4
| | | | cmMakefile instance.
* COMP: fix warningKen Martin2008-03-021-1/+2
|
* BUG: bad loop index unsigned compared to zeroKen Martin2008-03-011-1/+2
|
* COMP: fix some warningsKen Martin2008-03-011-1/+2
|
* ENH: add first cut and policies still need to add the doc supportKen Martin2008-03-011-19/+129
|
* ENH: make CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS the default and remove the ↵Bill Hoffman2008-02-291-9/+0
| | | | property. If any value is specified in an endif, endforeach, endwhile, etc then make sure it matches the start string. If no values are given then it is no longer an error.