Commit Graph

9072 Commits

Author SHA1 Message Date
Brad King bf4f05e69d STYLE: Nightly Date Stamp 2009-01-16 00:02:22 -05:00
Brad King c1e791ce10 BUG: Fix find_package docs for refind feature
Recently we taught find_package to re-find a package configuration file
if it is given a wrong answer.  This fixes the documentation to reflect
the change.
2009-01-15 16:16:19 -05:00
Brad King d602a3db85 BUG: Enforce matching policy PUSH/POP in all files
The documentation of cmake_policy PUSH and POP states that they must
always match.  Previously we enforced this only for the top scope of
each CMakeLists.txt file.  This enforces the requirement for all files.
2009-01-15 14:37:14 -05:00
Bill Hoffman 40366f6ced ENH: fix part submission to not have memory of the last part submission 2009-01-15 13:24:54 -05:00
Bill Hoffman be52e3b6fc BUG: fix for bug #8174 2009-01-15 10:32:56 -05:00
Brad King 35e391c93b ENH: Provide variable CMAKE_VERSION
This creates the variable CMAKE_VERSION containing the full version of
cmake in "major.minor.patch" format.  It is particularly useful with the
component-wise version comparison provided by the if() command.
2009-01-15 08:57:44 -05:00
Brad King 004cdfe6ff ENH: Document variable CMAKE_PATCH_VERSION
This adds documentation of CMAKE_PATCH_VERSION to the generated
variables documentation.
2009-01-15 08:57:17 -05:00
Brad King 22c12edaea STYLE: Nightly Date Stamp 2009-01-15 00:02:27 -05:00
Brad King 9551cafd69 BUG: Pop a function scope even on error
This uses an automatic variable to push and pop variable scope inside a
function call.  Previously if the function failed its scope would not be
popped.  This approach guarantees a balanced push/pop.
2009-01-14 15:14:06 -05:00
Bill Hoffman 046449e2f7 ENH: fix return value to ctest_build and remove debug print in cmProcess 2009-01-14 13:48:03 -05:00
Bill Hoffman 82c3afcf6f ENH: allow ctest_build to return error and warning counts 2009-01-14 13:01:38 -05:00
Brad King e92d99d05c COMP: Fix const set find for Borland 5.5
The Borland 5.5 compiler's STL set does not define correct signatures
for its find() members, leading to build errors.  This works around the
problem.
2009-01-14 09:51:58 -05:00
Brad King 914740cfab STYLE: Nightly Date Stamp 2009-01-14 00:02:27 -05:00
Brad King 1cfd3912c1 STYLE: Nightly Date Stamp 2009-01-13 00:02:33 -05:00
Brad King 6783ca8364 COMP: Remove unused variable 2009-01-12 11:10:04 -05:00
Brad King d66c25c2f0 ENH: Teach ctest_submit about parts
This adds a PARTS option to the ctest_submit command which tells it to
submit only parts whose names are listed with the option.
2009-01-12 10:38:27 -05:00
Brad King 447f5b303e ENH: Divide CTest file submission list by part
This splits the list of files for CTest to submit into those belonging
to each part.  The set is recombined just before submission.  Later this
will allow piecewise submissions.
2009-01-12 10:37:55 -05:00
Brad King 4b97fab34d ENH: Refactor cmCTest test part representation
This introduces the name "part" to denote a portion of the testing and
submission process performed by ctest.  We generalize the boolean
indicating whether each part is enabled into a structure to which more
information can be added later.  We provide bi-directional mapping
between part id and part names.
2009-01-12 10:37:25 -05:00
Brad King cccac773ce ENH: Teach ctest_* to create appending XML files
This adds an APPEND option to the ctest_* commands which tells them to
put the Append="true" attribute in the Site element of their XML file.
2009-01-12 09:11:29 -05:00
Brad King ae2c4143d2 ENH: Refactor CTest command argument handling
The previous approach to handling of arguments to ctest_* commands
worked only for keyword/value arguments with a single value.  This
refactors the approach to allow some commands to define alternative
argument forms.
2009-01-12 09:10:47 -05:00
Brad King 02fb5880c1 STYLE: Nightly Date Stamp 2009-01-12 00:02:58 -05:00
Alexander Neundorf 0d48ea6984 ENH: patch from Miguel,
As it is today the generator creates linked resources to
LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH if they are not a
subdirectory of the binary dir, so that the IDE can detect the
Binaries (this was addressed previously as a result of a bug report).

Reduces code redundancy by encapsulating common behaviour for
LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH in AppendLinkedResource.

Addresses the two new variable names for these locations,
CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_RUNTIME_OUTPUT_DIRECTORY respectively.

Finally, it is addressing a bug in the current code for relative paths
in these variables. If it is a relative path to the binary dir, the
IsSubdirectory call returns false and so it creates the linked
resource. The created linked resource produces an error in the Eclipse
IDE because the IDE expects it to be a full path. The patch now
addresses this by concatenating the binary dir if it is a relative
path.
2009-01-11 12:18:44 -05:00
Brad King 3db17e22c9 STYLE: Nightly Date Stamp 2009-01-11 00:02:51 -05:00
Alexander Neundorf f9920b47a8 BUG: don't create empty <itemizedlist>s (#7289), dblatex didn't like that
Alex
2009-01-10 09:01:37 -05:00
Alexander Neundorf 0f38be1561 STYLE: document CMAKE_COLOR_MAKEFILE (#7878)
Alex
2009-01-10 08:16:39 -05:00
Brad King 992953bcfe STYLE: Nightly Date Stamp 2009-01-10 00:02:51 -05:00
Alexander Neundorf 8a86595f45 COMP: forgot to commit this file
Alex
2009-01-09 20:35:21 -05:00
Alexander Neundorf 9518a416eb STYLE: remove debug output
Alex
2009-01-09 20:09:54 -05:00
Alexander Neundorf 4ec6a801ee BUG: fix #8073: also show targets created using add_custom_targets()
-additionally also create the target/fast targets for Eclipse
-skip preinstall and install/local, they should be only rarely used

Alex
2009-01-09 19:52:46 -05:00
Alexander Neundorf 6b0a59d593 BUG: remove the call to EnableInstallTarget(), don't know why it was there.
This caused that always an install target was created which installed
nothing, even if there was no install rule in the project.

Alex
2009-01-09 19:08:40 -05:00
Alexander Neundorf c8b2c317e2 BUG: fix #8105: don't hardcode "gcc" and "make" but use CMAKE_C_COMPILER and
CMAKE_MAKE_PROGRAM instead

Alex
2009-01-09 18:58:21 -05:00
Alexander Neundorf fcc97a4f3c BUG: fix #8203: codeblocks + mingw doesn't like the extra quotes around the
path to the makefile if it contains spaces, under Linux it works with spaces

Alex
2009-01-09 18:04:20 -05:00
Brad King 82e7e7fb7d ENH: Add missing newline to CTest-generated xml
The Generator="ctest..." attribute of Site elements in CTest-generated
XML files was missing a newline, causing the next attribute to appear on
the same line.  This adds the newline.
2009-01-09 16:44:19 -05:00
Bill Hoffman 5690cafd62 ENH: fix crash for old style scripts 2009-01-09 12:56:09 -05:00
Bill Hoffman 5d5fd641c3 ENH: fix return type 2009-01-09 12:32:52 -05:00
Bill Hoffman ed387ffe6b ENH: add subproject tag property for ctest 2009-01-09 12:05:23 -05:00
Brad King 86b103f271 ENH: Extend kwsys.testProcess-4 timeout
The test is supposed to terminate quickly when its child crashes, but
that seems to take over 10s on busy systems.  This extends the test's
timeout to 30s to help it pass when running on a busy system.
2009-01-09 11:44:46 -05:00
Brad King 0b33a44e44 STYLE: Nightly Date Stamp 2009-01-09 00:02:51 -05:00
Alexander Neundorf cf0ab29fcb BUG: apply patch from #8205, also fixes #8212: escape characters for XML
when writing the eclipse project files

Alex
2009-01-08 18:09:50 -05:00
Alexander Neundorf ef3e48c3d5 ENH: when trying to find a FooConfig.cmake file, if in the directory pointed
to by the Foo_DIR variable there is no FooConfig.cmake file, then instead of
abort and complain that the user should set or clear the Foo_DIR variables,
just search for the file and discard the old Foo_DIR contents

The tests succeed, ok by Brad.

Alex
2009-01-08 17:57:52 -05:00
Brad King ffd5f117e6 STYLE: Nightly Date Stamp 2009-01-08 00:03:04 -05:00
Clinton Stimpson 497b6df207 ENH: Tweak System Name field for cross compiling, so it doesn't have a file chooser button. 2009-01-07 17:28:02 -05:00
Brad King 5797b1cd66 ENH: Clean per-config export files during install
When installing the main export file the install tree may be dirty.  If
out-dated per-config files exist they may break the newly installed main
file which when it globs them.  This teaches the installation script to
detect when it is about to replace the main export file with a different
one and cleans out any existing per-config files.
2009-01-07 14:16:40 -05:00
Brad King f074d9f571 ENH: Add undocumented file(DIFFERENT) command
This new command will be used by generated installation scripts to
determine whether an already-installed export file has changed.
2009-01-07 14:16:35 -05:00
Brad King 254782ed76 ENH: Refactor computation of import file glob
New method cmExportInstallFileGenerator::GetConfigImportFileGlob
computes the globbing expression that an installed export file uses to
load its per-configuration support files.
2009-01-07 14:16:28 -05:00
Brad King 377bebb910 ENH: Teach CTest to submit test property LABELS
This teaches CTest to send the test property "LABELS" in Test.xml
dashboard submissions as Label elements inside a Labels element.
2009-01-07 10:41:37 -05:00
Brad King 605f4bd34e STYLE: Nightly Date Stamp 2009-01-07 00:02:53 -05:00
Brad King f0e6000827 BUG: Manage LC_MESSAGES with an object
This moves management of the LC_MESSAGES environment variable into an
automatic variable.  Previously if an error occurred the original
environment value was not restored.  This makes the fix to issue #5936
more robust.
2009-01-06 14:58:30 -05:00
Brad King c2d2a412b8 STYLE: Remove trailing whitespace 2009-01-06 14:41:56 -05:00
Brad King 6ea3c461a0 STYLE: Nightly Date Stamp 2009-01-06 00:03:19 -05:00
Brad King ed3bb743f4 ENH: Improve test property speed with a map
Previously we stored a vector of tests to preserve their order.
Property set/get operations would do a linear search for matching tests.
This uses a map to efficiently look up tests while keeping the original
order with a vector for test file generation.
2009-01-05 15:00:57 -05:00
Brad King 2703d51b8f BUG: Capture cout and cerr from internal ctest
When CTest detects that a test is running its own executable it
optimizes the test by using an internal instance of cmCTest instead of
creating a new process.  However, the internal instance was using cout
and cerr directly.  This redirects the output to a string stream to
avoid direct display of the internal test's output.
2009-01-05 14:14:10 -05:00
Brad King 86aeefc7c9 COMP: Fix installation of cmake-gui by CMake 2.4
When CMake 2.4 generates the build tree for CMake itself it asks the
built CMake to install itself using the rules that 2.4 generated.  Since
the install rules use undocumented commands that are not compatible from
2.4 to 2.6 we need a special case to avoid failure.  This sets a special
indicator variable in the install rules that enables a compatibility
hack to support the old install rule format.
2009-01-05 11:05:57 -05:00
Brad King e2fa035c70 ENH: Refactor internal file(INSTALL) arg parsing
The internal file(INSTALL) command argument parsing used several
booleans with at most one set to true at a time to track argument
parsing state.  This refactors it to use one enumeration.
2009-01-05 11:03:41 -05:00
Brad King 024aa044de BUG: Remove old get_target_property docs
The get_target_property command contained some outdated documentation of
the LOCATION and TYPE properties.  This removes it since they are now
documented in the properties list section of the documentation.
2009-01-05 09:53:22 -05:00
Brad King d7ddcc214f ENH: Enable LOCATION property for imported targets
Previously we left the LOCATION property undefined for imported targets
since it should no longer be used for non-imported targets.  However, in
the case we do not know the name of an available imported configuration,
it is more readable to get the LOCATION property than LOCATION_<CONFIG>
for a bogus configuration <CONFIG>.  This enables LOCATION for imported
targets and returns an unspecified available imported configuration.
2009-01-05 09:53:14 -05:00
Brad King 57dd0d95e9 STYLE: Nightly Date Stamp 2009-01-05 00:03:11 -05:00
Alexander Neundorf 8b67694fd1 STYLE: changed "one may" into "it should" to make it stronger
Alex
2009-01-04 04:12:52 -05:00
Brad King 9ae04f6feb STYLE: Nightly Date Stamp 2009-01-04 00:03:10 -05:00
Brad King 8df4340909 ENH: Clarify FATAL_ERROR option to min-req command
The FATAL_ERROR to cmake_minimum_required is useful for projects that
require 2.6 to convince CMake 2.4 to error out.  This clarifies its
usefulness in the documentation.
2009-01-03 15:48:13 -05:00
Brad King cd7585df22 ENH: Ignore unknown cmake_minimum_required args
When cmake_minimum_required is called with an unknown argument it should
not complain about it if the version specified is in the future.  This
allows the proper error to be shown about the current CMake being too
old.
2009-01-03 15:47:58 -05:00
Brad King ee1d1b2c68 STYLE: Nightly Date Stamp 2009-01-03 00:03:09 -05:00
Brad King 3e484ceaae STYLE: Nightly Date Stamp 2009-01-02 00:03:19 -05:00
Brad King 68ca6024b0 STYLE: Nightly Date Stamp 2009-01-01 00:03:31 -05:00
Brad King 4fe3af3469 STYLE: Nightly Date Stamp 2008-12-31 00:03:25 -05:00
David Cole 9457ca3cf5 ENH: Add OPTIONS argument to the ctest_configure command so that you can pass -D arguments to the cmake configure step from a ctest -S script. Also clarify/correct some not so helpful error messages. 2008-12-30 09:13:02 -05:00
Brad King baecf2a31c STYLE: Nightly Date Stamp 2008-12-30 00:03:23 -05:00
Bill Hoffman ede2be4be1 ENH: add start end time for procs 2008-12-29 17:49:17 -05:00
Brad King a075cfe976 STYLE: Nightly Date Stamp 2008-12-29 00:03:40 -05:00
Brad King 8c9666c821 STYLE: Nightly Date Stamp 2008-12-28 00:03:32 -05:00
Brad King 7277723ab1 STYLE: Nightly Date Stamp 2008-12-27 00:03:40 -05:00
David Cole 61cda77869 STYLE: Fix line length violation. 2008-12-26 15:27:01 -05:00
Brad King 85a46e9e51 BUG: Fix same-file check for directory ordering
When computing runtime search path ordering a constraint exists when a
file that may be found by the runtime search exists in a directory other
than that containing the desired file.  We test whether a potential
conflict is really the same due to a symlink.  Recently the change to
cmFindLibraryCommand to load directory content created a case in which
the same-file check would be incorrectly skipped.  This avoids skipping
the check.
2008-12-26 13:28:20 -05:00
Brad King 3e0bb83841 STYLE: Nightly Date Stamp 2008-12-26 00:03:39 -05:00
Brad King 69dfb275e7 STYLE: Nightly Date Stamp 2008-12-25 00:03:54 -05:00
Brad King df2321f774 STYLE: Nightly Date Stamp 2008-12-24 00:03:51 -05:00
Brad King 24d9817677 STYLE: Nightly Date Stamp 2008-12-23 00:03:58 -05:00
Brad King baf324abd8 STYLE: Nightly Date Stamp 2008-12-22 00:03:53 -05:00
Brad King 9407c6ca12 STYLE: Nightly Date Stamp 2008-12-21 00:03:59 -05:00
Brad King 32fcf2dd74 STYLE: Nightly Date Stamp 2008-12-20 00:04:05 -05:00
Bill Hoffman 690f83b81b STYLE: fix shadow warning 2008-12-19 10:19:37 -05:00
Brad King 0d7c6ee67b STYLE: Nightly Date Stamp 2008-12-19 00:04:09 -05:00
Bill Hoffman f5ee5cc04f BUG: partial fix for #8056 2008-12-18 21:59:25 -05:00
Bill Hoffman 5b1139caea BUG: fix for bug #8224 fix crash 2008-12-18 21:57:42 -05:00
Bill Hoffman 269ce52ad5 BUG: fix spelling 2008-12-18 21:52:46 -05:00
Brad King 0c85e2e627 COMP: Add set_directory_properties to bootstrap
We now need this command in the Tests/CMakeLists.txt file.
2008-12-18 14:56:30 -05:00
Brad King 0a83aa6f57 BUG: Fix windows command line escape for empty arg
On Windows the KWSys System package generates escapes for command-line
arguments.  This fix enables quoting of the empty string as an argument.
This also adds a test to pass an empty argument to a custom command.
2008-12-18 13:36:58 -05:00
Brad King 4c725d1e0e ENH: Minor readability improvement in CTest output
When ctest --build-and-test runs the --test-command its output did not
quote the arguments of the command being tested making it difficult to
read.  This adds the quotes.  This also changes the wording of the
failure case to not sound like CTest could not run the executable when
in fact it ran and returned failure.
2008-12-18 12:27:59 -05:00
Brad King 1e2c7a7bb3 BUG: Fix crash when running internal CTest
When CTest encounters a test whose executable is the ctest executable
iteslf, it just invokes code inside itself to avoid starting a new
process.  This fixes a null-pointer dereference in the logging code of
that case.
2008-12-18 12:27:54 -05:00
David Cole 0fafdb7eb8 BUG: Do not copy permissions of files when making the copy in an install rule. If the source file was read-only, this prevents the subsequent set of the destination file's modification time, making the copied file always different in time-stamp than the original and always installing a new file with a new time stamp (but the same content) causing unnecessary downstream incremental rebuilds. As part of this fix, add an optional copyPermissions parameter to the SystemTools routines CopyFileIfDifferent, CopyFileAlways, CopyAFile and CopyADirectory. The copyPermissions parameter defaults to true to preserve the behavior of these routines for existing callers. 2008-12-18 10:43:24 -05:00
Brad King f8c0dc27b5 STYLE: Remove useless install generator typedefs
The cmInstall*Generator classes all derive from cmInstallGenerator which
provides the Indent typedef so they do not need to provide it
2008-12-18 10:06:09 -05:00
Brad King 62a9fc7e94 COMP: Restore fixes to generated lexer
The command argument lexer was recently regenerated which erased some
fixes that had been applied directly to the output.  This restores the
fixes and adds reminder notes in the generation instructions.
2008-12-18 09:58:06 -05:00
Brad King 8d4eda5781 BUG: Move previous parser bugfixes into input file
The command argument parser code is generated by bison.  This change
restores some fixes previously applied to the generated output that were
destroyed by regenerating the parser source.  This time the fixes have
been put in the input file so regenerating the parser will not destroy
them again.
2008-12-18 09:58:01 -05:00
Clinton Stimpson e382ec035e ENH: Remove Application category. See #8151. 2008-12-18 09:37:20 -05:00
Brad King 93920277f4 STYLE: Nightly Date Stamp 2008-12-18 00:04:10 -05:00
Brad King ae7f2b47b3 COMP: Fix unused yyunput warning in lexer
This adds the "nounput" option to the flex input file so that yyunput is
not generated.  The function is static but not used so some compilers
warn.
2008-12-17 09:33:18 -05:00
Brad King 3958b3e112 ENH: Teach find_package about more install dirs
We now search in

  <prefix>/<name>*/
  <prefix>/<name>*/(cmake|CMake)

when looking for package configuration files.  This is useful on Windows
since the Program Files folder is in CMAKE_SYSTEM_PREFIX_PATH.  These
paths are the Windows equivalent to the Apple convention application and
framework paths we already search.  See issue #8264.
2008-12-17 09:24:05 -05:00
Brad King 625ef26163 ENH: Allow most characters in ENV variable refs
The $ENV{VAR} syntax permits access to environment variables.  This
teaches CMake to recognize most characters in the VAR name since some
environments may have variables with non-C-identifier characters.
2008-12-17 08:24:35 -05:00
Brad King 093cfc22f1 STYLE: Nightly Date Stamp 2008-12-17 00:04:11 -05:00
Clinton Stimpson b0c8b15fb9 ENH: Improve performance with file completion. Fix for #8292. 2008-12-16 15:15:33 -05:00