Commit Graph

10561 Commits

Author SHA1 Message Date
Alex Neundorf 555b8fcab5 -(minor) fix documentation for CMAKE_LIBRARY_PATH (#10291)
Alex
2010-05-08 09:12:57 +02:00
KWSys Robot ed81b62eff KWSys Nightly Date Stamp 2010-05-08 00:01:02 -04:00
Zach Mullen 231cbbef80 Change coverage globbing mechanism to resolve paths earlier 2010-05-07 11:00:21 -04:00
Brad King 678073bec2 CTest: Submit author email in Update.xml
Add the <Email>...</Email> element in Update.xml for each commit
reported.  This field was defined by Dart but never really used.
Distributed version control systems use author name and email
instead of a user id, so now it makes sense to use this field.
2010-05-07 09:17:26 -04:00
KWSys Robot 162597e4bf KWSys Nightly Date Stamp 2010-05-07 00:01:12 -04:00
KWSys Robot 0ac7f85d20 KWSys Nightly Date Stamp 2010-05-06 00:01:03 -04:00
Ruben Van Boxem 7883f952b0 Win64 fixes for mingw-w64 compilation 2010-05-05 17:13:21 -04:00
David Cole e0acb6ca5f Fix Windows-cl.cmake so that at most one MSVC** variable is defined.
The expectation of users of the MSVC60, MSVC70, MSVC71, MSVC80, MSVC90
and the new MSVC10 variables is that at most one of them will be set
for any given build tree. This change enforces that expectation for
build trees using Makefile generators. It also fixes the one mismatch
in that expectation to be found in the Visual Studio generator world:
previously, the VS 7.1 generator would set *both* MSVC70 and MSVC71;
now, it only sets MSVC71.

With these changes, user expectations are now met, and the recently
introduced CheckCompilerRelatedVariables test should pass everywhere.
2010-05-05 17:08:06 -04:00
Brad King ea62d6973b Do not list file names during 'cmake -E tar xz'
Since commit "Switch to using libarchive from libtar" (2009-10-30) the
the implementation of "tar xz" has printed all paths from the tarball as
a single line with no separator.  This fixes the logic to extract
silently as expected.
2010-05-05 14:44:36 -04:00
Clinton Stimpson 1df3f58317 BUG: Fix Bug #9975 when softlinks are used. 2010-05-05 06:49:24 -06:00
KWSys Robot 0bf998a46b KWSys Nightly Date Stamp 2010-05-05 00:01:05 -04:00
Bill Hoffman e2c496e2af Fix for bug #10542, allow this to build on Tru64 2010-05-04 14:43:43 -04:00
Brad King 67277bacca Teach ctest_update about Git submodules
Git does not automatically checkout the matching version of a submodule
when it checks out a new version of the parent project in the work tree.
If the submodule reference changed in the parent project then we were
reporting the submodule path as a local modification.  Work around the
problem in ctest_update using "git submodule update" after "git pull".
For projects with no submodules this is a no-op.  See issue #10662.
Also add a submodule to the test project for CTest.UpdateGIT to test the
work-around.
2010-05-04 09:40:04 -04:00
KWSys Robot f20fd583d8 KWSys Nightly Date Stamp 2010-05-04 00:01:02 -04:00
Alex Neundorf d7ceb75e8a -fix GetFrameworkFlags() for Mac, which was broken with my last commit
Alex
2010-05-03 21:28:44 +02:00
KWSys Robot 0b7206dd23 KWSys Nightly Date Stamp 2010-05-03 00:01:03 -04:00
KWSys Robot 5272d0dd8c KWSys Nightly Date Stamp 2010-05-02 00:01:03 -04:00
Alex Neundorf 3901e0408c -improve crosscompiling from Linux to iphone (#10526)
Patch by Karol Krizka

Alex
2010-05-01 20:38:28 +02:00
KWSys Robot 42c40884d2 KWSys Nightly Date Stamp 2010-05-01 00:01:12 -04:00
KWSys Robot d4c95316ee KWSys Nightly Date Stamp 2010-04-30 00:01:07 -04:00
Bill Hoffman 54319451a5 Make get_stl_prime_list an inline function to avoid duplicate copies of it. 2010-04-29 08:51:39 -04:00
KWSys Robot 7b7bf9344c KWSys Nightly Date Stamp 2010-04-29 00:01:07 -04:00
Bill Hoffman fd5b75e3f4 Fix for for bug #10550, fix some errors for an old Sun compiler. 2010-04-28 17:52:46 -04:00
Bill Hoffman a170690fd2 Fix for bug #10550, work around instantiation out of scope 2010-04-28 17:42:22 -04:00
Brad King 9e99ac5879 Fix .pdb name attribute in VS project files
The PDB file name for VCLinkerTool is specified by the xml attribute
"ProgramDatabaseFile", not "ProgramDataBaseFile" (note the lower-case
character 'b').  VS seems to cope with the incorrect capitalization but
the combination of VS 7.1 and Incredibuild does not.  See issue #10614.
2010-04-28 14:48:34 -04:00
KWSys Robot 46bc8fc739 KWSys Nightly Date Stamp 2010-04-28 00:01:02 -04:00
Alex Neundorf 0feb0b2d72 -fix bad check for Apple in AddDirectoryItem() introduced recently
Alex
2010-04-27 21:40:17 +02:00
Brad King 1da611fd46 ctest_update: Report failure in Update.xml
Report in <UpdateReturnStatus> when the update command line returns
non-zero.  Otherwise the failure may be silently ignored since the error
was previously recorded only in the local log file.
2010-04-27 14:10:47 -04:00
KWSys Robot 32856c1be4 KWSys Nightly Date Stamp 2010-04-27 00:01:03 -04:00
Clinton Stimpson 9ced0bf69b ENH: Add simple grouped view. 2010-04-26 16:06:52 -06:00
Brad King 6e1b510319 Remove unused cmData and cmMakefile::DataMap
These were implementation details of the unused methods

  cmMakefile::RegisterData
  cmMakefile::LookupData

We simply remove the methods, members, and class cmData.
2010-04-26 14:22:51 -04:00
KWSys Robot 07bd06bce3 KWSys Nightly Date Stamp 2010-04-26 00:01:03 -04:00
KWSys Robot 3d5d76fd88 KWSys Nightly Date Stamp 2010-04-25 00:01:02 -04:00
KWSys Robot f6b271521a KWSys Nightly Date Stamp 2010-04-24 00:01:06 -04:00
Zach Mullen 6ea9213244 Coverage glob should search in Source dir 2010-04-23 11:22:54 -04:00
Brad King 0328379411 Report commit hash in CMake development versions
For builds from Git repositories, add "-g<commit>" to the end of the
version number.  If the source tree is modified, append "-dirty".
For builds from CVS checkouts, add "-cvs-<branch>".
2010-04-23 10:01:49 -04:00
Brad King e49b6eca4f Teach CMake Policies about tweak version component
Add the [.tweak] version component throughout the policy implementation.
Document all components for the cmake_policy(VERSION) command.  Record
the tweak level in which each policy was introduced (0 for all current
policies).  In generated documentation we report the tweak level only if
it is not zero.  This preserves existing documentation.
2010-04-23 09:50:31 -04:00
Brad King 378acb1d4d Teach cmake_minimum_required about tweak version
The command now accepts four version components in the format

  major[.minor[.patch[.tweak]]]

This corresponds to the new versioning scheme introduced recently.
2010-04-23 09:50:02 -04:00
Brad King 5bfffd6f29 New version scheme to support branchy workflow
Prepare to switch to the workflow described by "git help workflows".  In
this workflow, the "master" branch is always used to integrate topics
ready for release.  Brand new work merges into a "next" branch instead.
We need a new versioning scheme to work this way because the version on
"master" must always increase.

We no longer use an even/odd minor number to distinguish releases from
development versions.  Since we still support cvs checkout of our source
tree we cannot depend on "git describe" to compute a version number
based on the history graph.  We can use the CCYYMMDD nightly date stamp
to get a monotonically increasing version component.

The new version format is "major.minor.patch.(tweak|date)".  Releases
use a tweak level in the half-open range [0,20000000), which is smaller
than any current or future date.  For tweak=0 we do not show the tweak
component, leaving the format "major.minor.patch" for most releases.
Development versions use date=CCYYMMDD for the tweak level.  The
major.minor.patch part of development versions on "master" always
matches the most recent release.

For example, a first-parent traversal of "master" might see

        v2.8.1      2.8.1.20100422    v2.8.2
           |              |              |
  ----o----o----o----o----o----o----o----o----

Since the date appears in the tweak component, the next release can
increment the patch level (or any more significant component) to be
greater than any version leading to it.  Topic branches not ready for
release are published only on "next" so we know that all versions on
master lead between two releases.
2010-04-23 09:44:23 -04:00
Zach Mullen 7049dff85a Implement extra coverage globbing 2010-04-23 09:20:53 -04:00
KWSys Robot 6c76119777 KWSys Nightly Date Stamp 2010-04-23 00:01:04 -04:00
KWSys Robot e498510de9 KWSys Nightly Date Stamp 2010-04-22 00:01:16 -04:00
Alex Neundorf d96371922d -fix typo in HAS_CXX docs (#10578)
Alex
2010-04-21 21:01:06 +02:00
Alex Neundorf b3843bab60 -fix linking to frameworks when crosscompiling from Linux to iPhone (#10526)
Alex
2010-04-21 21:01:06 +02:00
KWSys Robot 45d9106eef KWSys Nightly Date Stamp 2010-04-21 00:01:03 -04:00
KWSys Robot 22e9f2d0ab KWSys Nightly Date Stamp 2010-04-20 00:01:03 -04:00
Brad King 60de059bff KWSys Process: Add OpenBSD process tree kill support
Patch from Chuck Atkins <chuck.atkins@kitware.com>
2010-04-19 16:30:37 -04:00
Brad King 43072405e2 KWSys SharedForward: Add OpenBSD support
Patch from Chuck Atkins <chuck.atkins@kitware.com>
2010-04-19 16:30:23 -04:00
Alex Neundorf 41d6430b52 -don't add the INCLUDE env.var twice to the Eclipse project file
Alex
2010-04-19 18:32:10 +02:00
KWSys Robot 2c156fd18c KWSys Nightly Date Stamp 2010-04-19 00:01:03 -04:00
KWSys Robot 67c42804b9 KWSys Nightly Date Stamp 2010-04-18 00:01:05 -04:00
KWSys Robot c178660d96 KWSys Nightly Date Stamp 2010-04-17 00:01:03 -04:00
KWSys Robot 8df8fd8868 KWSys Nightly Date Stamp 2010-04-16 00:01:05 -04:00
KWSys Robot e04daebd73 KWSys Nightly Date Stamp 2010-04-15 00:01:03 -04:00
Brad King 33ddb23e67 Handle non-ASCII terminators in file(STRINGS)
Commit "Support more special characters in file(STRINGS)" (2009-10-06)
attempted to support parsing strings from binaries produced by the
Portland Group Fortran compiler.  The compiler seems to put an extra
byte just at the end of its string literals.  Previously we dealt with
this by explicitly enumerating bytes known to occur, but it seems that
many such possibilities exist.  Now we support extraction of strings
that end in any non-ASCII character.
2010-04-14 11:44:43 -04:00
KWSys Robot 13e6b430ff KWSys Nightly Date Stamp 2010-04-14 00:01:08 -04:00
KWSys Robot f9bdbf8fd3 KWSys Nightly Date Stamp 2010-04-13 00:01:06 -04:00
KWSys Robot c70850de6d KWSys Nightly Date Stamp 2010-04-12 00:01:04 -04:00
KWSys Robot d33303f22f KWSys Nightly Date Stamp 2010-04-11 00:01:02 -04:00
KWSys Robot c55814170e KWSys Nightly Date Stamp 2010-04-10 00:01:11 -04:00
Alex Neundorf 71812d0b5e -fix typos in docs, patch from Michael Wild
Alex
2010-04-09 21:40:59 +02:00
David Cole 018c13ff73 Patch to avoid short name usage where possible. Get the actual case spelling of a file name on 'Windows' without converting to short name and back again. Avoids bad behavior reported in http://bugs.winehq.org/show_bug.cgi?id=22286 when using cmake under a wine/msys/mingw installation on a Linux box. Thanks to Clinton Stimpson for preparing the patch. 2010-04-09 12:15:06 -04:00
KWSys Robot f468b50e9a KWSys Nightly Date Stamp 2010-04-09 00:01:04 -04:00
KWSys Robot e93b737dd5 KWSys Nightly Date Stamp 2010-04-08 00:01:05 -04:00
KWSys Robot 8ca2fa78b4 KWSys Nightly Date Stamp 2010-04-07 00:01:02 -04:00
KWSys Robot 3917de0998 KWSys Nightly Date Stamp 2010-04-06 00:01:04 -04:00
KWSys Robot ca41b71f0d KWSys Nightly Date Stamp 2010-04-05 00:01:03 -04:00
KWSys Robot 200d40acd1 KWSys Nightly Date Stamp 2010-04-04 00:01:04 -04:00
KWSys Robot ba559a3454 KWSys Nightly Date Stamp 2010-04-03 00:01:03 -04:00
Bill Hoffman cf3e42f811 Partial fix from bug #10503, use full paths to fix custom commands.
This fixes tests ExternalProject and LinkDirectory for VS 2010.
2010-04-02 14:09:06 -04:00
KWSys Robot a63dc3271a KWSys Nightly Date Stamp 2010-04-02 00:01:04 -04:00
KWSys Robot faf30c2502 KWSys Nightly Date Stamp 2010-04-01 00:01:02 -04:00
KWSys Robot e101d9f14e KWSys Nightly Date Stamp 2010-03-31 00:01:05 -04:00
David Cole 003ffe5908 Fix intermingling of test environments when tests run in parallel.
The SaveRestoreEnvironment helper object makes sure that the
original environment is restored immediately after the
StartProcess call returns rather than waiting for the end
of the test. When tests are executed in parallel, there is
no guarantee about the ordering of EndTest calls relative
to StartTest calls. In fact, it would be odd for them to
be nested nicely. Therefore, to avoid the corruption of
the calling ctest's environment, the original environment
must be restored before ForkProcess returns.
2010-03-30 14:08:31 -04:00
KWSys Robot d0b510900d KWSys Nightly Date Stamp 2010-03-30 00:01:03 -04:00
KWSys Robot 2a2a923ec9 KWSys Nightly Date Stamp 2010-03-29 00:01:04 -04:00
KWSys Robot 7a17b72e2c KWSys Nightly Date Stamp 2010-03-28 00:01:03 -04:00
KWSys Robot 9e74971c5f KWSys Nightly Date Stamp 2010-03-27 00:01:03 -04:00
Bill Hoffman 2c6f8de2cc Fix for bug #0010466, fix crash in --help-module. 2010-03-26 16:57:01 -04:00
Dave Partyka 9345833272 BUG: Commit a fix from Rusty to address incorrectly reported memory queries. 2010-03-26 14:18:24 -04:00
Chuck Atkins e750761857 OpenBSD: Work-around static/runtime linker inconsistency
Detect the runtime linker's search path and add to the compile time
linker's search path.  This is needed because OpenBSD's static linker
does not search for shared library dependencies in the same places as
the runtime linker.
2010-03-26 09:33:28 -04:00
KWSys Robot a8abb30c38 KWSys Nightly Date Stamp 2010-03-26 00:01:08 -04:00
KWSys Robot 4273cd9767 KWSys Nightly Date Stamp 2010-03-25 00:01:04 -04:00
KWSys Robot d086218658 KWSys Nightly Date Stamp 2010-03-24 00:01:03 -04:00
KWSys Robot a72b2ccb4c KWSys Nightly Date Stamp 2010-03-23 14:17:23 -04:00
Pat Marion fc4e7dcec0 ENH: Adding symbol for cray compute linux to DynamicLoader.cxx 2010-03-22 10:54:18 -04:00
KWSys Robot 9fd6916362 KWSys Nightly Date Stamp 2010-03-22 00:01:03 -04:00
KWSys Robot 23eb9c9ade KWSys Nightly Date Stamp 2010-03-21 00:01:03 -04:00
KWSys Robot ae58811523 KWSys Nightly Date Stamp 2010-03-20 00:01:03 -04:00
Zach Mullen 4b32ee01f2 Better detection of stop_time being passed. 2010-03-19 09:09:02 -04:00
KWSys Robot 40cb9c89d7 KWSys Nightly Date Stamp 2010-03-19 00:01:05 -04:00
Zach Mullen 9eea95c90f Fix StopTime to also account for localtime being a day ahead of gmtime 2010-03-18 14:48:42 -04:00
Zach Mullen 9676c52c3e Fix for StopTime for cases when gmtime is a day ahead of localtime 2010-03-18 13:53:40 -04:00
Zach Mullen a2fe175647 More debugging of StopTime test 2010-03-18 10:29:02 -04:00
Brad King 1560d9dcca KWSys: Enable process tree killing on kFreeBSD
Teach kwsysProcessKill to identify processes on this platform using the "ps"
command just as on Linux.  Patch from Modestas Vainius <modax@debian.org>.
See issue #10432.
2010-03-18 08:43:05 -04:00
KWSys Robot f1d801e4ea KWSys Nightly Date Stamp 2010-03-18 00:01:05 -04:00
Zach Mullen 0d48f81d32 Test using std::min 2010-03-17 12:12:04 -04:00
Zach Mullen 4c59570bfb Replace min() call with its literal definition 2010-03-17 12:07:10 -04:00
Zach Mullen 0ba9d04117 Add the --stop-time argument
Unit test and script hook for STOP_TIME
2010-03-17 11:04:13 -04:00
KWSys Robot 7f98d73457 KWSys Nightly Date Stamp 2010-03-17 00:01:03 -04:00
KWSys Robot 7881a9f9a6 KWSys Nightly Date Stamp 2010-03-16 00:01:03 -04:00
Bill Hoffman ebdda6ed13 Default to gcc as the compiler.
The compiler id is checked for C++ and C, if there is not one
of those available, then just default to gcc.  This makes it
work with Fortran, or None projects.
2010-03-15 14:53:12 -04:00
KWSys Robot 34ebee5922 KWSys Nightly Date Stamp 2010-03-15 00:01:03 -04:00
KWSys Robot 41ee399fa6 KWSys Nightly Date Stamp 2010-03-14 00:01:04 -05:00
KWSys Robot 84df478a31 KWSys Nightly Date Stamp 2010-03-13 00:01:04 -05:00
KWSys Robot b452e65526 KWSys Nightly Date Stamp 2010-03-12 00:01:11 -05:00
David Cole af92e72362 Add errorlevel checking after each custom command in a sequence.
This makes the behavior of the build with the Visual Studio generators
equivalent to the behavior of makefile based builds. After an error
in a custom command sequence, the build stops and reports an error
rather than executing the remaining commands in the sequence.
2010-03-11 17:04:15 -05:00
Brad King f9268c9c81 Use platform variable for response file flag
Create platform variable "CMAKE_<LANG>_RESPONSE_FILE_LINK_FLAG" to
specify an alternative to "@" for referencing response files.  It
applies specifically to response files with linker options.

See issue #10401.
2010-03-11 09:43:33 -05:00
Brad King 87f0853941 Use forward slashes for objects in response files
Response files are parsed by tools, not by shells.  We teach
cmLocalGenerator::Convert() a new "RESPONSE" output format and use it
for objects listed in response files.  It does not do special slash or
MSYS root translation like the "SHELL" format does.  This is necessary
for GNU tools on Windows to understand response file content.

See issue #10401.
2010-03-11 09:40:24 -05:00
KWSys Robot a4f798d3f7 KWSys Nightly Date Stamp 2010-03-11 00:01:04 -05:00
KWSys Robot d8338e491a KWSys Nightly Date Stamp 2010-03-10 00:01:04 -05:00
KWSys Robot f9213722f3 KWSys Nightly Date Stamp 2010-03-09 00:01:04 -05:00
KWSys Robot e67acbfc01 KWSys Nightly Date Stamp 2010-03-08 00:01:08 -05:00
KWSys Robot 98f2170c4a KWSys Nightly Date Stamp 2010-03-07 00:01:06 -05:00
KWSys Robot 71a74b4ba9 KWSys Nightly Date Stamp 2010-03-06 00:01:06 -05:00
KWSys Robot 0922d4f3f2 KWSys Nightly Date Stamp 2010-03-05 00:01:03 -05:00
KWSys Robot 6a15677a5b KWSys Nightly Date Stamp 2010-03-04 00:01:04 -05:00
Zach Mullen 2fd9b8072b Add unit test for RESOURCE_LOCK test property 2010-03-03 10:33:09 -05:00
KWSys Robot adca29a5be KWSys Nightly Date Stamp 2010-03-03 00:01:03 -05:00
Zach Mullen 767ffba8ff Added RESOURCE_LOCK test property. 2010-03-02 15:38:02 -05:00
KWSys Robot 634c3113ed KWSys Nightly Date Stamp 2010-03-02 00:01:02 -05:00
Zach Mullen 5cfbdb1f80 Close ifstream. 2010-03-01 12:05:58 -05:00
Zach Mullen 348f6c4d8c If tests failed on the last run, have them run first next time 2010-03-01 11:59:00 -05:00
Zach Mullen 09e748c69a Configurable path to CTest cost data file
Allow the user to set the CMake variable CTEST_COST_DATA_FILE, which will be used to store the cost data from test runs.  If not set, defaults to the original location in the build tree Testing/Temporary dir.
2010-03-01 11:06:28 -05:00
Simon Harvey 5771dd2f15 Documentation: Comply with "XHTML 1.0 Strict"
Ensure that the HTML documentation generated by CMake complies with
"XHTML 1.0 Strict":

  - All tags are properly closed and DOCTYPE is specified
  - Useful for downstream XML-processors (e.g. for extracting section
    titles)

See issue #10338.

Signed-off-by: Simon Harvey <simon.harvey@cambridgeflowsolutions.com>
2010-03-01 08:51:20 -05:00
KWSys Robot efa4eb446e KWSys Nightly Date Stamp 2010-03-01 00:01:06 -05:00
KWSys Robot 6474692076 KWSys Nightly Date Stamp 2010-02-28 00:01:03 -05:00
KWSys Robot fc871caebb KWSys Nightly Date Stamp 2010-02-27 00:01:04 -05:00
Zach Mullen b4d27dc041 Use historical average of test times to schedule tests. 2010-02-26 11:02:05 -05:00
KWSys Robot 55f012989c KWSys Nightly Date Stamp 2010-02-26 00:01:03 -05:00
KWSys Robot c63e4bd9be KWSys Nightly Date Stamp 2010-02-25 00:01:06 -05:00
KWSys Robot c38ffcf98c KWSys Nightly Date Stamp 2010-02-24 00:01:02 -05:00
KWSys Robot 73395fb0eb KWSys Nightly Date Stamp 2010-02-23 00:01:05 -05:00
KWSys Robot 6c300a04c4 KWSys Nightly Date Stamp 2010-02-22 00:01:04 -05:00
KWSys Robot da402c2f7e KWSys Nightly Date Stamp 2010-02-21 00:01:03 -05:00
KWSys Robot 88a4f2e3ec KWSys Nightly Date Stamp 2010-02-20 00:01:02 -05:00
Zach Mullen 57efb4a497 BUG: We shouldn't be setting the HideWindow option on the test processes we create. 2010-02-19 13:28:04 -05:00
KWSys Robot 2eeccbe227 KWSys Nightly Date Stamp 2010-02-19 00:01:07 -05:00
Brad King 282ba89558 Clarify CMAKE_MODULE_PATH documentation
Reword the documentation to make it clear that the variable can be a
list of directories.
2010-02-18 12:05:51 -05:00
KWSys Robot 19c42fb582 KWSys Nightly Date Stamp 2010-02-18 00:01:03 -05:00
KWSys Robot 27dac9fa86 KWSys Nightly Date Stamp 2010-02-17 00:01:05 -05:00
KWSys Robot 71e4fe7c7e KWSys Nightly Date Stamp 2010-02-16 00:01:03 -05:00
KWSys Robot 6301f98664 KWSys Nightly Date Stamp 2010-02-15 00:01:03 -05:00
KWSys Robot 596af9f86d KWSys Nightly Date Stamp 2010-02-14 00:01:03 -05:00
Alexander Neundorf 10aece0d81 -fix bug for Eclipse projects where targets which are in a subdir which has the same name as the project (... and so the linked resource) could not be built
http://public.kitware.com/Bug/view.php?id=9978
Now instead of one linked resource for each project() just one linked
resource to the top level source directory is created.
This should really avoid this type of name clashes. And to me it looks also
much less confusing.
Hopefully the name "[Source directory]" containing a space and square
brackets doesn't lead to problems somewhere. Here it works.

Alex
2010-02-13 11:08:42 -05:00
KWSys Robot aa2b217d1d KWSys Nightly Date Stamp 2010-02-13 00:01:05 -05:00
David Cole a41345feca Preemptively fix line too long problem before tomorrow's dashboard has a chance to complain about it. 2010-02-12 15:01:37 -05:00
David Cole e3293f8e46 Fix for issue #9125 - invent CMAKE_XCODE_ATTRIBUTE_* variable mechanism. If there are variables that begin with CMAKE_XCODE_ATTRIBUTE_ then add corresponding attributes into the generated Xcode project file. 2010-02-12 14:09:54 -05:00
Brad King bf4d2f6cc7 Fix KWSYS_PLATFORM_INFO_TEST when user removes tree
In commit 'Create KWSYS_PLATFORM_INFO_TEST macro' (2009-11-20) we
implemented the macro to use a cache entry to avoid re-running the
try_compile().  However, the output copied from the try_compile is
needed on every configure.  If the user wipes out the build tree but not
the cache file then the try_compile() will not re-run to recreate the
needed file.  We address the problem by teaching the macro to run the
try_compile() whenever its output file does not exist.
2010-02-12 10:46:50 -05:00
Brad King 41a608a75d Fix rule hash persistence file generation
We store custom command rule hashes in CMakeFiles/CMakeRuleHashes.txt
persistently across CMake runs.  When the rule hash changes we delete
the custom command output file and write a new hash into the persistence
file.

This functionality was first added by the commit 'Introduce "rule
hashes" to help rebuild files when rules change.' (2008-06-02).
However, the implementation in cmGlobalGenerator::CheckRuleHashes kept
the file open for read when attempting to rewrite a new file.  On
Windows filesystems this prevented the new version of the file from
being written!  This caused the first set of rule hashes to be used
forever within a build tree, meaning that all custom commands whose
rules changed would be rebuilt every time CMake regenerated the build
tree.

In this commit we address the problem by splitting the read and write
operations into separate methods.  This ensures that the input stream is
closed before the output stream opens the file.
2010-02-12 08:00:53 -05:00