Commit Graph

835 Commits

Author SHA1 Message Date
Brad King 9a88bc8c4b Use copies for versioned names on Windows
Versioned UNIX libraries and executables produce multiple names for a
single target using one of

  cmake -E cmake_symlink_library
  cmake -E cmake_symlink_executable

to create symlinks to the real file for the extra names.  However, when
cross-compiling from Windows to Linux we cannot create symlinks.  This
commit teaches CMake to make copies instead of symbolic links when
running on windows.  While this approach does not produce exactly what
Linux wants to see, at least the build will complete and the binary will
run on the target system.  See issue #9171.
2009-10-21 13:12:21 -04:00
Brad King 22cbfefb76 Factor out "cmake -E cmake_symlink_*" code
We factor the implementation of

   cmake -E cmake_symlink_library
   cmake -E cmake_symlink_executable

out of cmake::ExecuteCMakeCommand into methods

   cmake::SymlinkLibrary
   cmake::SymlinkExecutable

plus a helper method cmake::SymlinkInternal.
2009-10-21 13:10:24 -04:00
Brad King 24bf97440f REALLY fix color check for dependency scanning
The commit "Really fix color check for dependency scanning" disabled
color unless "make COLOR=ON" is specified.  This restores the previous
default behavior when CMAKE_COLOR_MAKEFILE is ON while retaining the
previous commit's fix.  See issue #9680.
2009-10-08 14:54:19 -04:00
Brad King dfa3b4f145 Really fix color check for dependency scanning
The commit "Fix color check for dependency scanning" was meant to
disable color if CMAKE_COLOR_MAKEFILE was off.  It did remove use of the
activation option '--color' but it failed to make the default false when
the option was missing.  This commit corrects that.  See issue #9680.
2009-10-08 14:45:25 -04:00
David Cole 44bcba7461 Fix warnings in CMake source code. Suppress rampant warnings emanating from Qt files. 2009-10-01 16:47:08 -04:00
Brad King 96afb12087 Convert CMake to OSI-approved BSD License
This converts the CMake license to a pure 3-clause OSI-approved BSD
License.  We drop the previous license clause requiring modified
versions to be plainly marked.  We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Bill Hoffman bf9a561cfa Fix typo in name 2009-09-16 21:02:57 -04:00
Bill Hoffman 77dfbd49b4 Fix for bug #8969, pick a better default version for VS, and make it easier to add new versions of VS to look for. 2009-09-14 22:16:43 -04:00
Bill Hoffman c83591e818 Fix for Bug #9190, -U did not work on case insensitive file systems because of call to glob convert to regex that expected to work with files. 2009-09-14 13:45:40 -04:00
Brad King 74b79d3b39 Remove barely-used cmCacheManager::AddCacheEntry
The commit "Remove barely-used cmMakefile::AddCacheDefinition" removed
all but one use of the cmCacheManager method 'bool' overload.  This
commit removes the other use and the entire method, thus reducing code
duplication.
2009-09-11 10:04:10 -04:00
Brad King 053519b390 Simplify VS CMake re-run check
When CMake is invoked by the VS IDE re-run rule we compute whether or
not CMake really needs to re-run based on some timestamp helper files.
Previously we assumed that if the main generate.stamp file exists then
VS has correctly detected that the file is out of date.  However, this
assumption is too aggressive and re-runs CMake unnecessarily sometimes.

This commit removes the assumption and always checks timestamps itself.
The change breaks the explicit user re-run request (R-click -> Compile)
but only in cases when the build system is already up to date.
2009-09-04 12:38:15 -04:00
Bill Hoffman 1554265aa6 Remove CMakeSetup. Long live cmake-gui, start building Qt now. 2009-09-03 17:01:07 -04:00
Bill Hoffman 327c561424 Use the MANIFEST flag for non incremental linking as well. 2009-09-01 15:08:51 -04:00
Bill Hoffman e9a170b108 Move /MANIFEST flag into -E vs_link. This is so it can be used by the intel compilers without having to specifiy it in the intel compiler files 2009-09-01 14:33:26 -04:00
Bill Hoffman 5fa4784274 Handle embeded manifests with ifort. 2009-09-01 14:10:49 -04:00
Brad King fd62a7cac4 Create GLOBAL_DEPENDS_NO_CYCLES property
This global property disallows cycles in the inter-target dependency
graph even among STATIC libraries.  See issue #9444.
2009-08-24 09:54:27 -04:00
Alexander Neundorf e5dd49c5f8 DOCS: fix typo (#9231)
Alex
2009-07-31 16:11:28 -04:00
Brad King e9d7ebb3ec BUG: Do not double-initialize local generators
All global generator CreateLocalGenerator methods automatically
initialize the local generator instances with SetGlobalGenerator.  In
several places we were calling SetGlobalGenerator again after receiving
the return value from CreateLocalGenerator.  The double-initializations
leaked the resources allocated by the first call to SetGlobalGenerator.
This fix removes the unnecessary calls.
2009-07-28 10:47:02 -04:00
Bill Hoffman 7491f52992 ENH: first pass at VS 10, can bootstrap CMake, but many tests still fail 2009-06-25 16:41:57 -04:00
Alexander Neundorf bc9703b695 STYLE: fix typos in the docs
Alex
2009-04-19 12:48:30 -04:00
Brad King aba3d56c92 ENH: Create command line api "cmake -E rename"
This extends the "-E" command line mode with a "rename old new"
signature.  The new command atomically renames a file or directory
within a single disk volume.
2009-04-15 09:58:33 -04:00
Brad King 493f88ce55 ENH: Allow projects to disable per-rule echo lines
This creates global property RULE_MESSAGES which can be set to disbale
per-rule progress and action reporting.  On Windows, these reports may
cause a noticable delay due to the cost of starting extra processes.
This feature will allow scripted builds to avoid the cost since they do
not need detailed information anyway.  This replaces the RULE_PROGRESS
property created earlier as it is more complete.  See issue #8726.
2009-03-16 16:55:58 -04:00
Brad King 2f651c2e59 ENH: Allow projects to disable per-rule progress
This creates global property RULE_PROGRESS which can be set to disbale
per-rule progress reporting.  On Windows, progress reports may cause a
noticable delay due to the cost of starting an extra process.  This
feature will allow scripted builds to avoid the cost since they do not
need detailed progress anyway.  See issue #8726.
2009-03-16 16:22:19 -04:00
Brad King 5e49dc4346 BUG: Fix cache properties for CMAKE_STRICT build
All cmPropertyMap instances must have CMakeInstance set.  This teaches
cmCacheManager to set it on cache entries.
2009-03-13 10:53:47 -04:00
Brad King 32258b44bc ENH: Document CACHE entry properties
This adds a property documentation section for CACHE properties.
We document the ADVANCED, HELPSTRING, TYPE, and VALUE properties.
2009-03-10 11:11:15 -04:00
Brad King 98c51ff6dc ENH: Overhaul CMake version numbering
This moves the version numbers into an isolated configured header so
that not all of CMake needs to rebuild when the version changes.

Previously we had spaces, dashes and/or the word 'patch' randomly chosen
before the patch number.  Now we always report version numbers in the
traditional format "<major>.<minor>.<patch>[-rc<rc>]".

We still use odd minor numbers for development versions.  Now we also
use the CCYYMMDD date as the patch number of development versions, thus
allowing tests for exact CMake versions.
2009-03-05 15:17:07 -05:00
Brad King 83f39ba41b STYLE: Remove unused cmake::CacheVersionMatches
This remove the method completely since nothing uses it.
2009-03-05 13:57:10 -05:00
Brad King 170febac52 ENH: Cleanup cmake --build interface.
This cleans up the 'cmake --build' command-line interface:
  - Rename --clean to --clean-first to better describe it.
  - Replace --extra-options with a -- separator to simplify passing of
    multiple native build tool options.
  - Document the options in the main CMake man page description of the
    --build option, and shares this with the usage message.
  - Require --build to be the first argument when present.
  - Move implementation into cmakemain where it belongs.
2009-03-04 15:39:27 -05:00
Brad King ed5e4d8be2 BUG: Gracefully handle broken version symlinks
This teaches the helper commands 'cmake -E cmake_symlink_executable' and
'cmake -E cmake_symlink_library' to remove broken symlinks before
creating a symlink and report an error when the symlink cannot be
created.  See issue #8654.
2009-03-02 16:02:19 -05:00
Brad King b604b98c56 ENH: Define RULE_LAUNCH_* properties
This defines global, directory, and target properties
RULE_LAUNCH_COMPILE, RULE_LAUNCH_LINK, and RULE_LAUNCH_CUSTOM.  Their
values specify 'launcher' command lines which are prefixed to compile,
link, and custom build rules by Makefile generators.
2009-02-10 08:51:15 -05:00
Brad King f35c0c2a17 BUG: Fix OS X FW symlink byproduct dependencies
When testing whether to re-run CMake, a byproduct may be a symlink.  If
so, the existence of the link is important rather than the link's
target.  See issue #8465.
2009-02-06 11:49:00 -05:00
Brad King 2282748907 BUG: Fix OS X AppBundle/FW byproducts dependencies
App Bundle and Framework directories, symlinks, and Info.plist files we
create during generation are byproducts, not outputs.  We should re-run
CMake only when they are missing, not when they are old.
See issue #8465.
2009-02-06 11:18:56 -05:00
Brad King 7d6a5e097f ENH: More robust property lookup
This teaches cmMakefile::GetProperty and cmake::GetProperty methods to
return NULL when the property name is NULL, making them more robust and
consistent with the behavior of cmTarget::GetProperty.
2009-02-02 13:27:30 -05:00
Bill Hoffman f6cb5c39bd BUG: fix for #8418 -E chdir should return fail of dir does not exist 2009-01-29 14:31:45 -05:00
David Cole 16f35e189e COMP: Fix the ExternalProject test for Visual Studio 6. Visual Studio 6 *.dsp files cannot have hyphens in them. Add utility function GetVS6TargetName to replace hyphens with underscores when generating *.dsp file names. Use the function everywhere necessary in the VS6 generators. And, a workaround: VS6 uses ".\Debug" (for example) as an "$(IntDir)" value - strip any leading ".\" when processing a --config argument in the cmake --build handling code. 2008-12-09 16:07:10 -05:00
Bill Hoffman 3fc5ca34f9 ENH: fix bootstrap test and warning 2008-10-15 15:13:06 -04:00
Bill Hoffman 1777bb502a BUG: 4244, add a --build option to cmake that can build projects configured by CMake 2008-10-15 13:56:07 -04:00
Bill Hoffman 05f908e08c BUG: fix for 6280, -E time was not sending back return value 2008-10-01 16:16:43 -04:00
Bill Hoffman ecf312ccc8 STYLE: fix line length stuff for KWStyle 2008-10-01 09:04:27 -04:00
Brad King 434a99bbeb ENH: Teach find_library to find OpenBSD-style libs
OpenBSD shared libraries use a ".so.<major>.<minor>" extension and do
not have a symlink with just a ".so" extension.  Its "ld" is capable of
finding the library with the best version.  This change adds support for
finding such libraries.  See issue #3470.
2008-09-22 11:08:17 -04:00
Brad King 3c5cf1bb8c ENH: Allow a custom list of debug configurations
Create a DEBUG_CONFIGURATIONS global property as a way for projects to
specify which configuration names are considered to be 'debug'
configurations.
2008-09-04 17:34:25 -04:00
Brad King 92a51377a1 BUG: Fix unsetting of global properties
The set_property command unsets a property if it is given no value.  In
the case of GLOBAL properties, the cmake::SetProperty method would
replace a NULL value with "NOTFOUND".  Instead it should be left as NULL
so that the property is unset as expected.  Once it is unset the
get_cmake_property command will still report NOTFOUND while the
get_property command will return the empty string as documented.
2008-09-04 13:15:08 -04:00
Bill Hoffman 1bda46564e BUG: 7448 fix crash in ccmake when compiler is changed 2008-08-19 13:31:21 -04:00
Bill Hoffman 45b9a2d575 BUG: fix for 7426 bad check for cpack 2008-07-31 13:36:53 -04:00
Bill Hoffman 6f31b0dfbd ENH: add a --trace option 2008-07-31 10:33:25 -04:00
David Cole 17452105cd BUG: Fix issue #7088 - do not emit error messages when attempts to run Visual Studio macros fail. You can still get the error output as messages if you want using --debug-output from the cmake command line. 2008-07-30 15:26:34 -04:00
Brad King dd1ee6975f ENH: Do not auto-create out-dated cache variables
- We used to always put LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH
    in the cache if the project did not.
  - In CMake 2.6 these variables should no longer be used.
  - Now add them only if CMAKE_BACKWARDS_COMPATIBILITY is also cached.
  - This happens only when CMP0001 is set to OLD or WARN or if
    the user or project sets it.  In any case compatibility is needed.
  - Reported by Miguel A. Figueroa-Villanueva and Philip Lowman.
2008-07-03 13:55:33 -04:00
Bill Hoffman 08b95e9cd8 BUG: fix for bug 7222 manifest:no not working for makefiles 2008-06-20 16:25:02 -04:00
Bill Hoffman 101337c63e ENH: support large object file lists with incremental visual studio linking 2008-06-18 13:28:24 -04:00
Bill Hoffman 5b5cd07d8d ENH: add an enabled language property 2008-06-17 13:13:21 -04:00
Brad King e77f5cfaed ENH: Whenever CMake re-runs from inside the VS IDE inform the user why. 2008-06-08 11:41:24 -04:00
Alexander Neundorf 96525cf3c3 BUG: make "cmake -Wno-dev ../srcdir" work, advancing i had the effect that
the argument after -Wno-dev was skipped, which happened to be the source
directory, and so the current working directory was assumed as source
directory, although it was the build directory (maybe this didn't have an
effect if there was already a CMakeCache.txt in the build dir)

Alex
2008-05-12 16:54:43 -04:00
Brad King 1381aab4b7 BUG: Remove check for files written by file(WRITE) being loaded.
- 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.
2008-04-30 13:42:40 -04:00
Bill Hoffman 45ce11a075 ENH: install the mac application bundle into /Applications directly with no enclosing folder 2008-04-04 16:02:50 -04:00
Alexander Neundorf 6292341841 ENH: make it possible to disable debug output again
Alex
2008-04-02 17:29:25 -04:00
Bill Hoffman cae34d2df3 ENH: try to fix mac symlinks to the executable 2008-03-28 14:29:29 -04:00
Bill Hoffman 7dcfdf5005 BUG: fix install problem on make and allow symlinks to cmake bin directory 2008-03-27 17:05:11 -04:00
Bill Hoffman b487030bd9 ENH: clean up annoying output from rc tool in VS9 2008-03-26 22:34:27 -04:00
Bill Hoffman 6d0845f2f8 ENH: make sure -Wno-dev sticks so make rebuild_cache will work 2008-03-22 10:24:06 -04:00
Brad King 36c37a60b0 ENH: Clarify end of (dev) warnings to explicitly state they are meant for project developers. 2008-03-20 10:11:52 -04:00
Bill Hoffman f12ea8bd32 ENH: move the clear to before things are added to the maps 2008-03-13 15:34:17 -04:00
Brad King 3e997c9fc8 ENH: Make (dev) warnings show note about -Wno-dev option. Fix -Wdev and -Wno-dev options to not be mistaken for the source directory specification. 2008-03-13 15:06:35 -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
Ken Martin 73df9a5cd4 ENH: change CMP_ to CMP 2008-03-13 11:38:46 -04:00
Bill Hoffman 8bf388109d ENH: make sure properties are re-set on each configure 2008-03-12 17:02:30 -04:00
Bill Hoffman fc26c1459c ENH: add ability to suppress dev warnings to gui code 2008-03-11 22:50:35 -04:00
Brad King fdf169be3a BUG: Fixes to VS8/VS9 project regeneration rules
- ZERO_CHECK should check all stamps in case
    of parallel build (fixes complex test failure)
  - ZERO_CHECK should not appear when
    CMAKE_SUPPRESS_REGENERATION is on (fixes bug 6490)
2008-03-11 17:25:49 -04:00
Bill Hoffman a547ff61cd ENH: add a way to suppress the new policy warnings, still need ccmake and gui's 2008-03-11 15:17:58 -04:00
Brad King 46bf0347a3 ENH: Finish creating, documenting, and enforcing policy CMP_0002. 2008-03-07 16:36:57 -05:00
Brad King 5233b75a77 ENH: Improve handling of old-style compatibility.
- 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
2008-03-07 15:30:35 -05:00
Ken Martin 55eede4b13 ENH: clean up some policy stuff and interactions with CMAKE_BACKWARDS_COMPATIBILITY and CMAKE_MINIMUM_REQUIRED 2008-03-07 11:43:47 -05:00
Ken Martin cd4d2acbe6 ENH: more policy changes 2008-03-04 14:51:25 -05:00
Ken Martin d47a5951ed ENH: add --help-policies and --help-policy command line options 2008-03-04 09:16:33 -05:00
Ken Martin d49ef18f8a ENH: add first cut and policies still need to add the doc support 2008-03-01 15:20:35 -05:00
Bill Hoffman 0dd276a311 ENH: remove CMAKE_PREFIX so changing it does not rebuild all 2008-02-18 13:03:40 -05:00
Brad King 1c0595c73f ENH: Add global property ALLOW_DUPLICATE_CUSTOM_TARGETS to help existing projects that depend on having duplicate custom targets. It is allowed only for Makefile generators. See bug#6348. 2008-02-14 16:42:29 -05:00
Bill Hoffman 3fa087c8ab ENH: fix make edit_cache for cmake-gui 2008-02-12 09:49:42 -05:00
Brad King 2e2f9b4be3 ENH: Add global computed property IN_TRY_COMPILE. 2008-02-11 17:00:36 -05:00
Brad King 523ddedac5 ENH: Analyze inter-target dependencies to safely fix cycles
- Cycles may be formed among static libraries
  - Native build system should not have cycles in target deps
  - Create cmComputeTargetDepends to analyze dependencies
  - Identify conneced components and use them to fix deps
  - Diagnose cycles containing non-STATIC targets
  - Add debug mode property GLOBAL_DEPENDS_DEBUG_MODE
  - Use results in cmGlobalGenerator as target direct depends
2008-02-05 23:10:41 -05:00
Brad King 847c8403fe BUG: Added TARGET_ARCHIVES_MAY_BE_SHARED_LIBS global property to help compute proper rpath information on AIX when shared libraries have names like "libfoo.a". 2008-02-04 15:22:10 -05:00
Brad King 02b1767e42 BUG: Make cmake -E remove_directory work when directory is not present. 2008-01-24 14:37:48 -05:00
Brad King b28c2625c7 COMP: Fix build during bootstrap on MSys. 2008-01-20 13:36:13 -05:00
Ken Martin 7c473d4828 BUG: fix bugs 5539 (progress going beyond 100% when new files are added) and 5889 (tests are not found in some cases when using add_subdirectory to .. etc) 2008-01-18 10:25:25 -05:00
Brad King caca9b8065 ENH: Add AppendProperty methods for use by C++ code in CMake. Simplify implementation of SET_PROPERTY command by using them. 2008-01-17 18:13:55 -05:00
Brad King 34c04d6d02 ENH: Added partial implementation of recognizing per-configration properties. 2008-01-15 10:49:59 -05:00
Bill Hoffman 45a4ddd85c BUG: fix resource file with a full path 2008-01-03 07:28:12 -05:00
Bill Hoffman 603cd2ab6a ENH: fix new incremental link stuff to work with nmake @ files 2008-01-02 09:32:29 -05:00
Bill Hoffman ada4252c56 ENH: remove warning 2008-01-01 17:19:11 -05:00
Bill Hoffman b479c6a8a9 ENH: add ability to have manifest files and incremental linking with make and nmake 2008-01-01 15:13:41 -05:00
Brad King d83b4cd255 ENH: Add a depends check step to custom targets. Add support for the IMPLICIT_DEPENDS feature of custom commands when building in custom targets. Convert multiple-output pair checks to be per-target instead of global. 2007-12-21 12:22:12 -05:00
Brad King 73704ede42 ENH: Enabled color printing of "Scanning dependencies of target ..." message. 2007-12-19 17:15:41 -05:00
Brad King de96fd1df9 ENH: Moved dependency integrity check from CheckBuildSystem over to a per-target UpdateDependencies step. This greatly reduces the startup time for make processes and allows individual targets to be built without a global dependency check. 2007-12-19 16:36:30 -05:00
Brad King 9ccba7c391 ENH: Improved speed of cmake::CheckBuildSystem when checking build system outputs versus dependencies. Instead of doing an O(m*n) comparison of every pair, just locate the oldest output and the newest input and compare them which is now O(m+n). 2007-12-19 11:51:30 -05:00
Bill Hoffman 58f671bb1c ENH: add support for vs 9 win64 2007-12-17 14:43:11 -05:00
Brad King 99dfcc05ef STYLE: Fixed line-too-long. 2007-12-15 14:13:14 -05:00
Brad King 6db2c473e2 COMP: Add missing return value from Bill's change. 2007-12-13 18:30:53 -05:00
Brad King 9f61e2a235 ENH: Centralized and globalized computation of CMake program locations. This eliminates startup paths that failed to produce this information. 2007-12-13 17:56:50 -05:00
Brad King ebc036bbda BUG: Fixed typo introduced by previous commit. 2007-12-13 17:39:53 -05:00
Bill Hoffman fd33bf93a5 ENH: fix for bug 6102, allow users to change the compiler 2007-12-13 15:54:29 -05:00
Bill Hoffman 5050706ae3 ENH: add a touch -E command to cmake 2007-12-04 16:03:19 -05:00
Ken Martin f4b1c3880b ENH: add functions and raise scope 2007-12-03 13:35:41 -05:00
Brad King 678bccc64b COMP: Do not build VS-specific code when generators are not included. 2007-11-19 14:22:38 -05:00
Brad King 3b59c7b97a ENH: Added call to StopBuild VS macro when projects fail to regenerate during a build. 2007-11-19 13:45:16 -05:00
David Cole 867de7fc67 ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded. 2007-11-16 07:01:58 -05:00
Brad King a546ba7ed4 BUG: Fix messages for time stamp file recreation. 2007-11-12 16:58:05 -05:00
Brad King 34c882a9f8 ENH: Allow VS 7 project Rebuild and Solution Rebuild to work without re-running CMake for every project during the rebuild. 2007-11-10 08:15:13 -05:00
Ken Martin 433a914910 ENH: different way of testing properties 2007-11-06 14:16:00 -05:00
Brad King f410f8578e COMP: Fix warnings on 64-bit Mac OS X build. Patch from issue #3697. 2007-11-05 14:34:36 -05:00
Ken Martin 29c9f1bc2b BUG: fix bad set property code in cmake 2007-10-30 10:57:09 -04:00
Ken Martin f72d666a7b ENH: add ability to get documentaiton of a property from a script 2007-10-24 14:43:10 -04:00
Ken Martin 6cdf032505 ENH: change to make the documentation class more generic, about halfway there, also provides secitons for Variables now 2007-10-22 12:49:09 -04:00
Bill Hoffman 5c4eadba23 ENH: add docs for variables 2007-10-18 09:10:42 -04:00
Ken Martin b63ff2fb6f ENH: minor doc cleanups and an example of documenting a variable 2007-10-15 14:50:18 -04:00
Ken Martin 35e13b11f3 BUG: revert doc changes since VS7 cannot compile them, will implement them in a different manner 2007-10-09 14:35:25 -04:00
Ken Martin 18ce24c748 ENH: make documentation entries actually store their data 2007-10-09 09:55:42 -04:00
Bill Hoffman 9cbb998737 ENH: add support for vs 2008 beta 2 2007-09-17 15:21:47 -04:00
Brad King 54a470dd03 BUG: Fix path to CMake executables when run from bootstrap build. 2007-08-31 09:09:41 -04:00
Bill Hoffman 8b07c96090 ENH: fix memory leak 2007-08-10 11:15:19 -04:00
Alexander Neundorf 8d7b502337 ENH: add global properties for collecting enabled/disabled features during
the cmake run and add macros print_enabled/disabled_features() and
set_feature_info(), so projects can get a nice overview at the end of the
cmake run what has been found and what hasn't
FIND_PACKAGE() automatically adds the packages to these global properties,
except when used with QUIET
Maybe this can also be useful for packagers to find out dependencies of
projects.

Alex
2007-08-07 15:41:57 -04:00
Alexander Neundorf 2246e0336d BUG: also offer the extra generators in CMakeSetup
Alex
2007-08-01 14:58:55 -04:00
Alexander Neundorf f7f522e61a ENH: add Eclipse CDT4 generator, patch from Miguel A. Figueroa-Villanueva
Alex
2007-08-01 09:18:50 -04:00
Alexander Neundorf d6a0c330bc ENH: deb generator can now generate deb packages
-remove the unscriptable commands also from the cpack cmake
-use CPACK_PACKAGE_CONTACT in CMakeCPack.cmake, it's used in the nsis and
the deb generator
-make set_properties() scriptable
-use a non-const char array for adding the python modules

Alex
2007-07-27 08:59:59 -04:00
Alexander Neundorf a39aff52a0 ENH: add an empty debian package generator, Mathieu volunteered to fill it
:-)

Alex
2007-07-25 10:57:33 -04:00
Alexander Neundorf 27244a1fde ENH: build codeblocks generator also on Windows
Alex
2007-07-18 10:19:33 -04:00
Alexander Neundorf b56815a4e9 COMP: fix build on Windows, where GetCurrentDirecty() is redefined to
GetCurrentDirectoryA()
-correct return value for md5sum

Alex
2007-07-17 12:01:39 -04:00
Alexander Neundorf a4429ad30a STYLE: fix line lengths and add "remove -f" to the docs
Alex
2007-07-17 10:44:09 -04:00
Alexander Neundorf 5bb94ce166 ENH: apply patch from Mathieu, add argument -E md5sum to compute md5sums of
files, compatible to md5sum output

Alex
2007-07-16 10:54:32 -04:00
Alexander Neundorf 378a8e99f9 ENH: add a simple CodeBlocks extra generator, early alpha stage, there seems
to be interest in it

Alex
2007-07-13 00:58:43 -04:00
Alexander Neundorf 9f16292b6a STYLE: sort the property documentation into
global/directory/target/test/sourcefile and variable sections

Alex
2007-07-11 15:53:58 -04:00
Alexander Neundorf 7fbd4161d5 STYLE: name the external generator "KDevelop3 - Unix Makefiles" instead of "Unix Makefiles -
KDevelop3"
-initialize Ignore to 0, crashes otherwise

Alex
2007-07-03 16:10:50 -04:00
Brad King eab81489f1 ENH: Added global property FIND_LIBRARY_USE_LIB64_PATHS to allow lib64 paths to be searched optionally. Turn off the feature on debian systems. This addresses debian report 419007. 2007-06-27 12:07:34 -04:00
Alexander Neundorf f8261ff9f7 STYLE: change global cmake variable CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS
to the first global cmake property TARGET_SUPPORTS_SHARED_LIBS

Alex
2007-06-26 13:05:27 -04:00
Ken Martin 0b9644910d ENH: added the ability to document variables and cached_variables 2007-06-25 10:34:21 -04:00
Ken Martin 509f1fb9cb ENH: some property cleanup and added GetProperty 2007-06-25 09:51:37 -04:00
Alexander Neundorf 1d9889c5d3 ENH: put compatibility commands in extra section and prepare for creating
separate man pages for properties, modules, commands and compatibility
commands

Alex
2007-06-22 08:44:51 -04:00
Alexander Neundorf f6a6556e3c COMP: include cmExternalMakefileProjectGenerator.h
Alex
2007-06-15 16:09:30 -04:00
Alexander Neundorf 6d200fa6be STYLE: minor fixes
Alex
2007-06-15 16:07:16 -04:00
Alexander Neundorf 9d4f3a0686 STYLE: remove duplicate non-const accessors GetLocalGenerator(int) and
GetLocaGenerators(cmLocalGenerators) from cmGlobalGenerator(). Now there is
one const accessor which is even faster since it returns a reference
(instead of copying a vector)
-more const to ensure that this the returned local generators don't actually
get modified
-removed duplicated code in GetCTestCommand() and GetCPackCommand()
-added some const accessors

Alex
2007-06-15 10:10:24 -04:00
Alexander Neundorf 6e28861c18 ENH: remove non/scriptable cmake commands from the script handler in ctest,
as discussed with David. This also gives a better ctest man page with just
the commands you should actually use in ctest scripts.
Until now these commands were more or less executed, but e.g. add_executable() didn't create an executable, project() failed with an
error. Now you get an error instantly if using one of these commands.

Alex
2007-06-12 10:56:40 -04:00
Alexander Neundorf 0ddc9f62e5 ENH: add cmExternalMakefileProjectGenerator, which should make it easier to
write generators for IDE projects, which use already existing makefiles
(current the kdevelop generator)
-first stept of the export interface, iniitial export() command
-more replacements for the FIND_XXX docs

Alex
2007-06-08 11:57:16 -04:00
Alexander Neundorf 18cc1228bb ENH: also remove uninitialized from the cache
Alex
2007-06-07 10:41:52 -04:00
Alexander Neundorf e9fc2cb086 STYLE: fix typo: now double space after -D
Alex
2007-06-04 13:50:34 -04:00
Alexander Neundorf 003654670b ENH: -U for removing variables now uses globbing expressions
-cmCacheManager: now also variables with type UNINITIALIZED are saved in
CMakeCache.txt, these are the vars defined using -DFOO=foo but without type

Alex
2007-06-04 13:48:11 -04:00
Alexander Neundorf 0be0283f30 BUG: also put a variable into the cache when defined using -D if no type is
given, then STRING is used. Also add command line option -U as suggested for
undefining cache variables. This fixes #4896 and #4264.

Alex
2007-06-01 14:16:46 -04:00
Andy Cedilnik f9f1ccadb3 ENH: Add variable watch command 2007-04-11 15:13:05 -04:00
Ken Martin f59e649dc2 ENH: added remove_directory bug 2937 2007-03-12 16:10:00 -04:00
Ken Martin 558dbc84ad ENH: typo 2007-03-12 13:30:36 -04:00
Ken Martin 03f3411c4f ENH: small enchancement for bug 3776. 2007-03-12 12:40:34 -04:00
Brad King 2f2b5b2503 ENH: SetupPathConversions is now called automatically on demand. 2007-03-08 08:38:40 -05:00
Ken Martin 4456013702 ENH: fix compiler warning 2007-03-02 10:49:32 -05:00
Ken Martin c733ab2701 BUG: a couple bugs in system informaiton 2007-03-01 10:53:09 -05:00
Ken Martin 56e3a35ece BUG: allow system information to accept the -G option 2007-02-28 12:25:19 -05:00
Ken Martin cbf6bae9f4 BUG: fix to naming of results file 2007-02-27 16:41:43 -05:00
Ken Martin 42c41d77fa BUG: fix for unused variable 2007-02-27 12:47:14 -05:00
Ken Martin 31a700188b ENH: added --system-information option to CMake 2007-02-27 10:10:10 -05:00
Andy Cedilnik 726c267f99 BUG: Produce an error when the script is not found 2007-02-22 09:10:37 -05:00
Andy Cedilnik ffc0b5e4de BUG: Overwrite the symlink if it already exists. Close Bug #4418 - cmake -create-symlink doesn't overwrite existing symlinks 2007-02-15 15:07:16 -05:00
Ken Martin 179579bed7 ENH: improve SetProperties and fix a couple warnings 2006-12-11 10:26:10 -05:00
Ken Martin 1dd5db0235 COMP: fix some warnings and style issues 2006-12-08 09:27:52 -05:00
Ken Martin 27379d7b08 ENH: make properties a bit more formal with documentation and chaining 2006-12-07 09:45:32 -05:00
Bill Hoffman b56a60d01e ENH: fix errors for unix builds 2006-11-29 17:45:55 -05:00
Bill Hoffman ccb77b65c6 ENH: unify version stuff, get rid of it out of cmake and cmMakefile and only use cmVersion 2006-11-29 15:59:16 -05:00
Andy Cedilnik 897a2a9029 ENH: Cleanup of install component list. There was already the list in the global generator. Use that one 2006-10-31 14:28:48 -05:00
Andy Cedilnik 7ded253013 ENH: Add support for displaying the list of components 2006-10-30 15:59:54 -05:00
Brad King 74c70d4078 BUG: Do not display cmake -E usage when any old command line error occurs. 2006-10-23 16:16:05 -04:00
Ken Martin 3a0b94131d BUG: partial fix for the progress after install bug 2006-10-16 12:49:26 -04:00
Bill Hoffman 017cec95ad ENH: do not print a call stack if the user does a message error unless --debug-output is used 2006-10-06 11:11:59 -04:00
Bill Hoffman 9c4302f79e ENH: do not allow null pointer access 2006-10-03 11:55:55 -04:00
Brad King accf93fc12 ENH: Added undocumented option -E cmake_unimplemented_variable to help print useful error messages for unimplemented features on a given platform. 2006-08-07 17:22:58 -04:00
Ken Martin 299bbcad86 ENH: fix color output inside of ctest runs 2006-07-21 14:58:13 -04:00
Andy Cedilnik 898dfe5a2d ENH: Cleanup. Replace c-style cast with static_cast and replace sprintf with cmOStringStream 2006-07-21 13:05:56 -04:00
Ken Martin 847c3a5849 ENH: add a higher performance method to get the number of files in a directory 2006-06-22 10:35:37 -04:00
Bill Hoffman 7e5509a260 ENH: avoid crash in sprintf 2006-06-20 13:13:13 -04:00
Brad King 0bbcb49f65 ENH: Added generation of link rules into script files executed by a cmake -E command in order to support longer link lines. This is needed only on platforms without response file support and that may have weak shells. 2006-06-15 16:17:11 -04:00
Brad King 60487a227e BUG: Always check dependency integrity whether or not CMake will re-run because the generator no longer checks integrity during generation. 2006-06-15 09:45:02 -04:00
Ken Martin 14cc1efe2c ENH: some cleanup to progress 2006-06-12 11:40:31 -04:00
Brad King d9e060e062 BUG: Fixed cmake -E remove return code. 2006-05-30 11:15:27 -04:00
Brad King ec2104cd31 BUG: Updated Makefile dependency scanning to provide a full local generator to the dependency scanner to do proper path conversions. This allows the rules written into the depend.make files to use the same relative path conversion as those written into the build.make files. Several previous changes added more and more information for use by the dependency scanner and it was converging to having the full local generator anyway. 2006-05-25 09:47:30 -04:00
Ken Martin 50d058a3a1 ENH: always compile progress 2006-05-23 09:11:46 -04:00
Ken Martin 25c2ee32ae COMP: fix bootstrap 2006-05-22 16:10:35 -04:00
Ken Martin 108101c1dc COMP: fix mac warning 2006-05-22 16:07:50 -04:00
Ken Martin 53dce3b231 ENH: part of the progress reporting checkin 2006-05-22 15:41:52 -04:00
Bill Hoffman ed981ef0b7 ENH: fix crashes when command line arguments are not followed by the correct number of arguments 2006-05-18 23:24:00 -04:00
Andy Cedilnik fd8e45d4a1 ENH: Add simple progress reporting during make 2006-05-15 13:02:28 -04:00
Ken Martin bf5ed9b27b STYLE: fix line length 2006-05-12 14:36:39 -04:00
Brad King a3cd7fd1b5 COMP: Disable color support for bootstrap. 2006-04-26 21:53:21 -04:00
Brad King 4494c29078 ENH: Enabling color makefile support using cmsysTerminal_cfprintf. Support for color is automatically detected when messages are printed. Also made color scheme more readable on both black and white backgrounds. This option can be enabled by setting CMAKE_COLOR_MAKEFILE to true in the project. 2006-04-26 21:31:39 -04:00
Bill Hoffman cf23679d72 ENH: save the cache on fatal error so that users can set cache values 2006-04-20 17:00:43 -04:00
Bill Hoffman 852135074e ENH: add more verbose output in verbose mode 2006-04-11 22:39:34 -04:00
Brad King d5719f22c1 ENH: Added support for multiple outputs generated by a single custom command. For Visual Studio generators the native tool provides support. For Xcode and Makefile generators a simple trick is used. The first output is considered primary and has the build rule attached. Other outputs simply depend on the first output with no build rule. During cmake_check_build_system CMake detects when a secondary output is missing and removes the primary output to make sure all outputs are regenerated. This approach always builds the custom command at the right time and only once even during parallel builds. 2006-04-11 11:06:19 -04:00
Bill Hoffman 5a2668b326 ENH: add support for win64 for visual studio 2005 ide and nmake, also fix warnings produced by building for win64 2006-03-30 13:49:56 -05:00
Andy Cedilnik 43b9f184c2 COMP: Fix apple bootstrap issues 2006-03-22 13:04:49 -05:00
Andy Cedilnik b20cb78049 ENH: Handle missing unsetenv and add check for environ 2006-03-17 15:46:20 -05:00
Andy Cedilnik fe1fda6431 ENH: Use vector of plain strings and add cmake -E command for getting environment 2006-03-17 11:14:14 -05:00
Bill Hoffman 5208004560 ENH: fix up this changes for mac 2006-03-15 12:02:34 -05:00
Ken Martin 3d96e52261 STYLE: some m_ to this-> cleanup 2006-03-15 11:02:08 -05:00
Bill Hoffman 5a8e1e4942 ENH: remove print 2006-03-11 11:53:30 -05:00
Andy Cedilnik 634343c3e8 STYLE: Fix some style issues 2006-03-10 13:06:26 -05:00
Andy Cedilnik ccac9542b1 ENH: Add a way to overwrite some preferences and ignore certain targets 2006-03-07 15:31:05 -05:00
Brad King 6d4b7425fd ENH: Add CMAKE_COMMAND and CMAKE_ROOT variables when running in script mode. This partially addresses bug#2828. 2006-03-07 14:46:50 -05:00
Andy Cedilnik e82de6a5d5 COMP: Fix warnings 2006-03-07 12:03:11 -05:00
Andy Cedilnik 49c0a4b52a COMP: Oops, typo 2006-03-03 14:28:28 -05:00
Andy Cedilnik bc4e5581ee ENH: Add support for exporting graphviz of the project dependencies 2006-03-03 14:24:31 -05:00
Andy Cedilnik a488b192af BUG: Fix location of ctest for bootstrap 2006-02-24 08:57:05 -05:00
Andy Cedilnik f1fb182270 ENH: Add accessors for CTest and CPack 2006-02-23 10:00:44 -05:00
Brad King f2cf7e9197 ENH: Enable capture of output from VCExpress.exe and devenv.exe. 2006-02-15 10:22:55 -05:00
Bill Hoffman 14cbc9571a ENH: do not allow mingw makefiles to generate if sh.exe is in the path, also do not write CMakeCache.txt if there is a fatal error. 2006-02-14 22:03:16 -05:00
Brad King b403ad61e2 BUG: Fixed echo command to not print trailing space. 2006-02-10 11:41:52 -05:00
Brad King 73284a1c12 ENH: Enabled build of VS 7 and 8 generators for MinGW. 2006-01-31 19:34:57 -05:00
Brad King 576d8b41cb ENH: Enabled bootstrapping with MinGW from an MSYS prompt. 2006-01-31 18:50:16 -05:00
Bill Hoffman 9891260a6d ENH: add support for watcom wmake and wcl386 2006-01-17 10:21:45 -05:00
Andy Cedilnik c690311b76 ENH: Add a way to compare two files 2005-12-30 15:25:35 -05:00
Andy Cedilnik abe4fd77fc ENH: Make the syntax more line tar 2005-12-29 12:19:13 -05:00
Andy Cedilnik 14c256ddba ENH: Make additional file names optional 2005-12-29 10:52:19 -05:00
Andy Cedilnik d1180fc4e1 ENH: Add untaring support 2005-12-29 10:43:12 -05:00
Andy Cedilnik 5222266e7e ENH: Add command to create tar 2005-12-28 16:31:12 -05:00
Bill Hoffman f6588b7919 ENH: fix borland make clean targets before build, add new generators for msys and mingw 2005-12-22 16:42:36 -05:00
Ken Martin d3d746ad7b STYLE: minor cleanup 2005-10-20 16:37:14 -04:00
Andy Cedilnik a51dfefe79 ENH: Optimize performance by caching stat results 2005-10-12 13:51:15 -04:00
Ken Martin 9be341383e BUG: the -P option was not working with relative paths and a couple types 2005-09-23 12:50:09 -04:00
Brad King 904305e3cb ENH: Added cmake -E create_symlink command that behaves like ln -s. 2005-08-19 09:38:17 -04:00
Brad King 78112eef25 ENH: Added -E cmake_symlink_executable command to help create symbolic links for versioned executables. 2005-08-17 16:06:52 -04:00
Ken Martin 039d4b604e ENH: added better error checking for cases when there is a CMakeCache.txt file but it is not readable 2005-08-11 13:20:23 -04:00
Brad King ce52a0802f BUG: When exiting before the configure step in script mode we must account for cmSystemTools::GetErrorOccuredFlag() for the return code. 2005-08-08 09:37:29 -04:00
Ken Martin f85f919dbc ENH: reduce the number of files produced still needs a bit more cleanup 2005-07-27 09:49:37 -04:00
Bill Hoffman 9062e6d922 ENH: fix for bug 1866, make -G,-D -C options allow for space between arg and value 2005-07-19 17:16:23 -04:00
Ken Martin 9d531303c0 BUG: win95 returning non unix path for cmake command 2005-07-07 09:44:55 -04:00
Andy Cedilnik 034d87eef5 ENH: Only truncate files when not in try compile. Alsom move truncating code closer to configure 2005-07-03 12:06:40 -04:00
Andy Cedilnik 69ca8776a8 ENH: Start adding the code that will truncate output logs 2005-07-02 22:25:43 -04:00
Andy Cedilnik 9a7dec33a3 ENH: Before running configre, remove all macros. Also, backup the command names. Also, make command names case insensitive 2005-06-16 14:56:15 -04:00
Andy Cedilnik 24a5c0a72e ENH: Save command that macro overwrites 2005-06-14 12:48:59 -04:00
Ken Martin e559aa11ac ENH: added support for forcing recomputation of depends 2005-06-10 10:45:08 -04:00
Ken Martin c08862a88d ENH: removed UMG2 2005-06-09 14:39:14 -04:00
Ken Martin 749fe26394 ENH: fix problem with dependency scanning 2005-06-07 10:47:28 -04:00
Ken Martin 193747256b ENH: switch to using new Unix Makefile generator for Unix as well 2005-05-25 11:18:41 -04:00
Ken Martin 4a701917a4 BUG: fix bad generator name 2005-05-12 11:24:23 -04:00
Ken Martin caf17c123b ENH: added new generator 2005-05-12 10:49:56 -04:00
Brad King dc75c22645 COMP: Fixed forced bool conversion warning. 2005-05-06 12:38:23 -04:00
Brad King e8911705d6 ENH: Added optional verbose output to build system dependency check. 2005-05-06 09:58:58 -04:00
Bill Hoffman d74d8aeb71 BUG: fix for bug 1700 2005-04-05 11:23:08 -04:00
Bill Hoffman 3abbf15a5a ENH: make xcode compile only on apple 2005-03-14 13:23:14 -05:00
Ken Martin 63cd6e39e1 COMP: fix a warning 2005-03-11 08:38:15 -05:00
Ken Martin 3ff6722934 ENH: cleanup by removing all the olf local generate junk that i not longer needed 2005-03-10 13:39:38 -05:00
Brad King 2444cd3828 ENH: Implementing explicit cmake_copy_f90_mod callback to copy Fortran90 modules to the stamp files more reliably. This removes the temporary hack for per-platform upper-/lower- case. 2005-03-03 16:53:33 -05:00
Ken Martin 78ca400d33 ENH: remove code warrior classes 2005-03-03 08:47:03 -05:00
Brad King 2aa613b98c ENH: Enabling cmLocalUnixMakefileGenerator2 (new makefile generator) by default. 2005-03-01 12:26:25 -05:00
Brad King 832fa0e609 BUG: Need to return before configure step when running in script mode. 2005-02-22 09:08:02 -05:00
Brad King 2651d170d5 BUG: Removing "guess when there is a space in the path" check for chdir command. It is the responsibility of the caller of the command to ensure the arguments are properly quoted on the command line. 2005-02-17 07:53:57 -05:00
Bill Hoffman ee0db4aeb4 BUG: fix CommandLine test problems with spaces and testing for the return value 2005-02-16 13:15:25 -05:00
Andy Cedilnik dd851619ac ENH: Add command to copy directory with content 2005-02-11 16:25:30 -05:00
Andy Cedilnik e9eccb0098 BUG: prevent -P or script to be passed as homedirectory 2005-01-28 13:00:36 -05:00
Bill Hoffman 96daa417cb ENH: add initial non-working XCode stuff 2005-01-25 15:26:57 -05:00
Bill Hoffman a641ad3bba ENH: split up cmCommands into two files 2005-01-21 10:27:51 -05:00
Brad King 195cdf172e ENH: Split dependency scanning and checking into separate cmDepends superclass with language-specific subclasses such as cmDependsC. 2005-01-18 17:09:05 -05:00
Brad King 81bbae1fb2 ENH: Added build system integrity check to cmLocalUnixMakefileGenerator2. This now uses a special --check-build-system flag to cmake which replaces --check-rerun. Integrity of dependencies is also checked during generation. 2004-10-29 16:50:46 -04:00
Andy Cedilnik 56234aed4b PERF: Remove several classes from the bootstrap and so making bootstrap smaller and faster 2004-10-27 10:47:14 -04:00
Brad King 2a7e2adf7a ENH: Added object file dependency scanning to cmLocalUnixMakefileGenerator2. This needs a hook in cmake.cxx. 2004-10-26 12:55:20 -04:00
Andy Cedilnik fc70a2bb2a ENH: Add development version support in CMake 2004-10-22 15:44:54 -04:00
Brad King 6bc6466be3 ENH: Added --check-rerun option to allow a runtime check of whether a new generate should really be done. 2004-10-15 09:24:44 -04:00
Bill Hoffman 832a302ca2 BUG: do not build kdevlop stuff when bootstrapping 2004-10-12 09:50:36 -04:00
Bill Hoffman 766c093d69 NEW: add kdevelop patch from Alexander Neundorf 2004-10-11 11:32:14 -04:00
Bill Hoffman f9468a2967 FIX: correctly handle if path table can not open 2004-10-05 11:37:03 -04:00
Ken Martin c86e9f5b3e COMP: fix bad include file 2004-10-05 09:01:30 -04:00
Ken Martin 1066af4527 ENH: Mathieus support for path conversions 2004-10-04 12:31:09 -04:00
Bill Hoffman 66a08c10e5 ENH: more uniform approach to enable language, one step closer to being able to enable a language without modifing cmake source code 2004-08-26 14:55:55 -04:00
Andy Cedilnik 75cf590b21 ENH: Implement PreLoad.cmake feature for CMakeSetup 2004-08-23 14:33:22 -04:00
Andy Cedilnik 957ddc4195 ENH: Move PreLoad.cmake code to public method so that ccmake and CMakeSetup can call it 2004-08-17 15:36:08 -04:00
Brad King 743eed068c BUG: Fixed typo in name of MSVC 8 registry key. 2004-08-04 10:00:39 -04:00
Bill Hoffman 2a8b05b69d BUG: fix for bug 971, pick a better generator from the command line 2004-07-27 13:40:47 -04:00
Bill Hoffman 997ee7b8d6 ENH: add a message at the end of the cmake run telling the user where things were written. 2004-07-16 16:02:40 -04:00
Bill Hoffman 86195caf6a ENH: add support for VCExpress 2005 2004-07-05 12:16:33 -04:00
Andy Cedilnik 9d61ea38dd ENH: Also read PreLoad.cmake from the binary tree 2004-07-02 09:57:39 -04:00
Andy Cedilnik 23798f8a22 ENH: Remove memory leak 2004-05-05 10:13:19 -04:00
Bill Hoffman 55af104169 BUG: fix crash from bug id 806 2004-04-29 10:26:22 -04:00
Andy Cedilnik df31c576dc ENH: Add support for automatically preloaded cmake file. Closes Bug #802 - Add auto preload file support in CMake 2004-04-28 10:52:20 -04:00
Andy Cedilnik 34115a5989 BUG: Fix resolving of infinite loops while CMakeSetup/ccmake still running 2004-04-26 11:23:06 -04:00
Andy Cedilnik 55a71ba572 ENH: Add check for infinite loops. Make sure that files written using WRITE_FILE and FILE WRITE are not used as input files. Fixes Bug #678 - WRITE_FILE and FILE(WRITE...) lead to infinite loops 2004-04-18 14:41:46 -04:00
Bill Hoffman d0cea4c7bb ENH: make relative paths optional and default off, and add a test for them 2004-03-31 10:01:52 -05:00
Andy Cedilnik 51516613e8 ENH: Ok, when doing cmake -P you should not have to squish filename next to -P, There should be space between 2004-02-20 14:46:33 -05:00
Bill Hoffman 222e9a2876 BUG: fix put/get env problems 2004-01-26 13:32:46 -05:00
Brad King 49bd89fe31 BUG: CopyFileIfDifferent should return success if the files did not differ or if the copy succeeded. It should return failure only if the files were different and the copy failed. 2004-01-22 10:30:01 -05:00
Bill Hoffman c336a9b1ac BUG: make sure null terminator is in the right place for putenv static char array 2004-01-08 09:59:24 -05:00
Bill Hoffman 2c2291bbe0 ENH: add new feature to ctest so that it can cmake, build and run a test executable 2004-01-07 11:24:22 -05:00
Bill Hoffman 09ba0a0a31 BUG: keep more of the case information 2003-12-23 15:01:10 -05:00
Bill Hoffman eb9fc21543 ENH: add support for relative paths in makefiles 2003-12-22 12:24:26 -05:00
Andy Cedilnik afc33a1990 ENH: Argument for script mode is -P (process) and take out the automatic script mode 2003-12-10 19:47:15 -05:00
Brad King 306fc9ea96 ENH: Improved error messages when source tree does not have a CMakeLists.txt file. No matter how many cases we check, there always seems to be a user that finds a case that gives a confusing error message... 2003-12-08 11:31:16 -05:00
Brad King ffd8ca9cd9 BUG: cmake_symlink_library should return the accumulated result, not just 0. 2003-11-27 10:28:50 -05:00
Brad King 5bbc45d589 BUG: The cmake_symlink_library command needs to remove existing files before creating links. 2003-11-26 17:34:01 -05:00
Brad King f764e1fcb2 ENH: Added undocumented cmake_symlink_library to help with building versioned shared libraries. 2003-11-26 16:38:26 -05:00
Brad King 7ce0e4c576 BUG#313: Improving error message when no CMakeLists.txt file is found in the source tree. 2003-10-30 16:12:09 -05:00
Andy Cedilnik d21532cd02 ENH: Ok, no more argument needed for script mode 2003-10-29 19:49:50 -05:00
Andy Cedilnik ac2859aaa3 ENH: Start includding the scripting support 2003-10-29 09:45:26 -05:00
Andy Cedilnik b79c2f5a4c ENH: Command should also be quoted 2003-10-28 15:26:00 -05:00
Brad King 41445f67ac BUG: Fixed crash of cmake -i when CMAKE_ROOT cannot be found. Made resulting error message cleaner. 2003-08-26 15:06:52 -04:00
Bill Hoffman a413160fec ENH: add the unix makefile generator as an option from the windows GUI, this builds with mingw, cygwin, and combinations of make cl, bcc32 2003-08-21 16:22:23 -04:00
Andy Cedilnik 39c7cb9197 ENH: Remove unused variable 2003-08-18 14:06:27 -04:00
Bill Hoffman 86947e0b26 ENH: remove a warning 2003-08-14 09:09:44 -04:00
Ken Martin 072db6ad70 removed redundent includes 2003-08-10 18:30:54 -04:00
Brad King 1de2bba717 BUG: Fixed typo in error message. 2003-08-07 16:11:49 -04:00
Brad King 9234f45e23 ENH: Removed old argument processing code that never does anything. 2003-08-06 18:41:36 -04:00
Brad King 75b3751a4f ENH: Clarified source directory mismatch message. 2003-08-05 16:51:00 -04:00
Brad King 1e077d436e ENH#61: cmake and ccmake now support passing the path to a CMakeCache.txt file as an argument. Its settings will be loaded. 2003-08-05 16:36:15 -04:00
Andy Cedilnik 369a4188e6 ENH: Use the new RunCommand 2003-08-03 22:35:52 -04:00
Andy Cedilnik 2f98c791fa ENH: Allow specifying cmake variables on the command line without specifying the type Bug #118 - Specifying cache entries with -D should not need the type 2003-08-01 14:10:26 -04:00
Bill Hoffman f7c9e258ae BUG: make sure initial cache file read only reads one file, and does not look for CMakeLists.txt files on the entire disk 2003-07-28 13:40:53 -04:00
Bill Hoffman fe384ee980 add a better message for the GUI if no CMakeLists.txt file is found. 2003-07-25 13:39:47 -04:00
Brad King a1bb1a4712 ENH: Added optional configuration of data/doc/man dirs. This will be useful for package maintainers. 2003-07-21 16:38:53 -04:00
Brad King e5ed57ec18 ENH: Registered global generators are now kept in a table in the cmake instance. Added support for documentation with a Generators section. 2003-07-07 21:52:10 -04:00
Brad King abffd72cbb BUG: Fixed check for existence of CMakeLists.txt file in top-level source directory before first configure. 2003-06-13 14:15:17 -04:00
Andy Cedilnik 1e09bc5dde ENH: Abstract pre configure check in a separate method 2003-05-29 11:14:05 -04:00
Bill Hoffman 5945a5a448 ENH: add some includes for borland 6 2003-05-23 16:40:55 -04:00
Brad King cbef9d224d ERR: Fixed string literal->char* conversion warning. 2003-05-14 08:40:16 -04:00
Brad King 02f7cfbcbe BUG: Need to remove the MAKEFLAGS when cmake starts. If cmake is run from inside make, we don't want the try-compiles to inherit the makeflags. 2003-05-13 16:51:01 -04:00
Brad King 20b198835c ENH: When the initially configured generator is invalid, allow the user to change the generator without deleting the cache by hand. 2003-05-13 16:11:14 -04:00
Bill Hoffman 6112e7fc16 add support for vs 71 2003-05-08 16:59:27 -04:00
Andy Cedilnik d6b9c96739 ENH: New location of cmake binaries 2003-05-02 13:56:56 -04:00
Andy Cedilnik e72535fda7 ENH: Add additional optional argument to Run. If it is true, it will only set paths and load cache. It will not do configure and gfenerate 2003-04-29 10:04:05 -04:00
Ken Martin af055f6f6d minor fix 2003-04-16 15:40:24 -04:00
Ken Martin 99b3152a60 add COdeWarrior back in for testing 2003-04-16 14:47:44 -04:00
Brad King a5ea72df88 ENH: Improved documentation. Also modified behavior of "cmake" to not configure a project in the current directory unless . is given. 2003-04-02 22:48:12 -05:00
Brad King ab761edaef BUG: Fixed crash when CMAKE_BACKWARDS_COMPATIBILITY is deleted between configures. 2003-02-24 11:02:23 -05:00
Brad King 1f55680332 ENH: Added cmDocumentation class to generate various forms of documentation. Each executable will be able to generate its own documentation. 2003-02-14 10:53:37 -05:00
Brad King 486454ef78 BUG: Fixed crash when CMAKE_ROOT cannot be found. 2003-01-22 10:33:34 -05:00
Bill Hoffman c7b5bb6d2c BUG: fix command line to take -G only 2003-01-22 09:34:15 -05:00
Brad King 7418ed1a67 BUG: Use CMakeDefaultMakeRuleVariables.cmake to locate modules directory instead of FindVTK.cmake. 2003-01-21 16:46:24 -05:00
Ken Martin 6e7f83a0ab compiler warning 2003-01-10 09:02:29 -05:00
Ken Martin 05955d6403 fix bug in env settings 2003-01-09 12:18:22 -05:00
Ken Martin 26bc729933 added watches for access of bw compat vars 2003-01-09 08:47:17 -05:00
Andy Cedilnik 829f8382e0 Add option of watching variables 2003-01-08 12:59:52 -05:00
Ken Martin dcc9c131b4 testing more agressive compatability settings 2002-12-20 10:23:51 -05:00
Andy Cedilnik 2fb76a9f07 Save directories when doing global build 2002-12-17 12:11:48 -05:00
Andy Cedilnik 1ac5fb545f Fix switching from local to global generation when cmake version changes or when things change inside version 2002-12-16 12:13:37 -05:00
Brad King 21c0dda8d0 ENH: Added copy_if_different option to -E flag. 2002-12-16 11:10:37 -05:00
Bill Hoffman 1e8914ada8 BUG: fix get make command problems. 2002-12-04 10:57:22 -05:00
Ken Martin 3a21181941 added CMAKE_BACKWARDS_COMPATIBILITY entry 2002-12-04 10:44:44 -05:00
Ken Martin 37aed9f6c5 remove code warrior and fixed GUI isues 2002-12-03 14:09:56 -05:00
Ken Martin 86c32e96db fix some compiler warnings hopefully 2002-11-17 17:31:12 -05:00
Ken Martin 523b7ffa3b fixed bad source directory bug 2002-11-15 13:17:43 -05:00
Bill Hoffman 2905d39689 ENH: check to make sure cmake matches the cmake used to generate the cache 2002-11-13 15:20:20 -05:00
Andy Cedilnik 7274abe460 Revert back 2002-11-07 09:04:20 -05:00
Andy Cedilnik 3d4a2fdc52 In certain cases, try to guess the source directory, so that you can run cmake or ccmake without specifying source dir 2002-11-06 12:04:24 -05:00
Bill Hoffman 8ff7c13227 BUG: fix stack limit size on mac OSX 2002-10-24 15:39:25 -04: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
Brad King 281f7519e1 ENH: Renamed cmStringStream to cmOStringStream and added cmIStringStream. Removed cmInputStringStream. 2002-10-10 10:43:59 -04:00
Ken Martin e55a05a6f6 added Code Warrior dev 2002-10-09 13:37:27 -04:00
Ken Martin 047acd0c6f Produce only one output 2002-10-02 11:14:19 -04:00
Andy Cedilnik 779810f132 Fix bug in chdir; Who did this anyway... 2002-09-30 16:46:19 -04:00
Ken Martin 6672c295c7 Set comspec substitute the right way 2002-09-30 14:01:51 -04:00
Andy Cedilnik 9619ee3aa1 Another attempt on Windows 98 2002-09-30 11:41:53 -04:00
Ken Martin 595c15c84a compiler warnings 2002-09-29 14:09:16 -04:00
Andy Cedilnik 780a9bbda7 Add two cmake commands -E echo for echoing strings and -E comspec for workaround of bug of windows 9x; add another implementation of run command on windows which should work... 2002-09-27 17:28:15 -04:00
Ken Martin c751d2ebff added progress 2002-09-26 15:14:20 -04:00
Ken Martin 9878f49dfc fixed memory leak 2002-09-24 13:24:10 -04:00
Ken Martin 2a68d21e85 cleaned up some of the cmake interface 2002-09-17 13:59:58 -04:00
Ken Martin c1da4c9570 better try compile 2002-09-13 10:41:20 -04:00
Ken Martin c6c579f35a uninitialized var 2002-09-12 14:37:27 -04:00
Ken Martin 2aea6d528e added a flag if a cmake is in try compile 2002-09-12 11:08:06 -04:00
Brad King d9326ed78d ERR: Added missing include of stdio.h for sprintf. 2002-09-10 17:24:25 -04:00
Ken Martin 9149cdd078 moved commands into cmake 2002-09-10 16:51:29 -04:00
Brad King 929a2b18f6 ERR: Fix for borland on linux. 2002-09-10 15:36:11 -04:00
Ken Martin 3abb9e240d compiler warnings 2002-09-08 10:17:03 -04:00
Ken Martin 25ff4552b3 new arch 2002-09-06 13:06:23 -04:00
Ken Martin d0be2896d7 changed cache manager and registered generators to no longer be singletons 2002-08-28 14:51:10 -04:00
Bill Hoffman 3f36d23421 BUG: add explicit clean up of the cachemanager at exit of programs, so dll destruction is not a problem. 2002-08-23 13:46:32 -04:00
Andy Cedilnik 42a00c96c1 Fix changing of directories using cmSystemTools RunCommand feature 2002-07-17 11:53:07 -04:00
Andy Cedilnik 120b2523f5 Add command that runs program in given directory 2002-07-10 14:34:38 -04:00
Brad King a1a05a5fbc BUG: CMake crashed if it failed to find its own executable. Also added better error messages when this occurs. 2002-06-27 09:35:21 -04:00
Brad King 07d35e662d ENH: Added cmStringStream class to wrap std::stringstream or std::strstream depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed. 2002-06-19 15:21:49 -04:00
Ken Martin 350f09ae6d removed ccommand use cmake now 2002-06-03 13:08:52 -04:00
Ken Martin ccbc8a3c8a remobed bootstrap 2002-05-28 08:56:39 -04:00
Ken Martin 92c5ff5b40 minor bootstap fixes 2002-05-23 10:33:37 -04:00
Ken Martin 1052a6700f added initial attempt to support win32 bootstrapping 2002-05-15 17:23:09 -04:00
Bill Hoffman 0caf44cb5d ENH: fix cmake to work without ccommand. 2002-05-08 09:05:40 -04:00
Bill Hoffman 3bc9830686 ENH: add an edit_cache target that runs ccmake or CMakeSetup 2002-05-07 09:02:45 -04:00
Bill Hoffman 059a14a3a6 ENH: check for mismatched generators 2002-04-25 13:09:17 -04:00
Berk Geveci 77bb62e00c Exit ccmake on fatal errors. 2002-04-23 16:16:48 -04:00
Bill Hoffman 75f9434374 BUG: fix SameFile function for windows, and compare source directories 2002-04-19 08:27:50 -04:00
Bill Hoffman 06922e1ac6 ENH: use home not start 2002-04-18 14:51:33 -04:00
Bill Hoffman 5ba411dd64 ENH: check for mis-matched source directories 2002-04-18 14:19:39 -04:00
Bill Hoffman 4ea0f6b949 ENH: add enable language support for PROJECT command, this means that a C only project can be built with cmake, even without a cxx compiler 2002-04-02 15:43:23 -05:00
Ken Martin 8d594bdcce removed quotes from cmake and ccommand executable to be consistant 2002-03-25 17:03:54 -05:00
Andy Cedilnik 5bbae88569 Add ccommand for executing commands on the system, so by using ADD_CUSTOM_COMMAND, you can make rules to do some system commands during build. Currently supported commands are copy and remove. Others will follow. 2002-03-15 15:42:59 -05:00
Bill Hoffman 60b9a2c14b ENH: first pass at dot net support 2002-02-18 14:36:04 -05:00
Bill Hoffman 4d119dd7d6 ENH: add ends at end of string 2002-02-06 12:14:03 -05:00
Berk Geveci 11ff0db01f Using cmSystemTools::Error() instead of cerr. 2002-02-01 13:08:50 -05:00
Brad King 8ed3ce29bf ERR: Removed cmCacheManager::DefineCache method. It is no longer needed. 2002-01-22 10:17:37 -05:00
Will Schroeder a6a43d5320 ENH:Updated copyright 2002-01-21 15:30:43 -05:00
Sebastien Barre 8a599b3569 Fix: escaping spaces was preventing a value with space to be passed correctly 2002-01-18 14:07:17 -05:00
Amitha Perera b2085d7e9d Rolling back symbolic path changes until it works on Windows. 2002-01-07 15:49:07 -05:00
Amitha Perera 2fa6a0eb44 ENH: Add an invocation that maintains symbolic paths to the source and binary trees, mainly for systems with automounted network drives.
ENH: CollapseFullPath() no longer adds a trailing "/" to directory paths.
2002-01-06 14:59:16 -05:00
Ken Martin b4e27e9795 prints the relese version 2002-01-02 16:45:30 -05:00
Bill Hoffman b545988c0b ENH: add -C load cache file option 2001-12-03 17:00:43 -05:00
Berk Geveci b8573c65ec Fixed help. 2001-12-03 15:11:59 -05:00
Berk Geveci a987b6bf47 Fixed help. 2001-12-03 15:11:03 -05:00
Sebastien Barre b180bf609b fix warning for Borland build 2001-11-30 17:20:43 -05:00
Bill Hoffman 0d3eefb1f1 new borland generator moved into place 2001-11-30 16:48:52 -05:00
Bill Hoffman fd516c022d add new borland generator 2001-11-28 11:12:15 -05:00
Bill Hoffman 12551a33c3 NMake with spaces in directories 2001-11-21 17:45:01 -05:00
Bill Hoffman 94c828bd1f ENH: clean up command line arguments 2001-11-21 08:47:37 -05:00
Bill Hoffman f7fae15d39 ENH: add command line arguments to set cache entries 2001-11-20 17:51:03 -05:00
Bill Hoffman 2df56cf21b ENH: fix library builds with nmake 2001-11-15 09:55:50 -05:00
Bill Hoffman 94f82edd07 Closer to nmake build 2001-11-14 18:12:22 -05:00
Bill Hoffman 8f652aad21 ENH: fixes for borland compiler testing 2001-10-03 15:49:52 -04:00
Bill Hoffman d204791e45 ENH: integrate borland support 2001-09-06 17:28:24 -04:00
Bill Hoffman 7aec024997 opps 2001-08-29 17:21:21 -04:00
Bill Hoffman 97dc84a613 ENH: run cmake from cmaketest 2001-08-29 15:57:57 -04:00
Bill Hoffman a5eac44d18 ENH: rework GUI with configure/OK/Cancel 2001-07-25 18:30:27 -04:00
Brad King fdd48818db ENH: Removing automatic setting of BUILD_SHARED_LIBS. Projects that support this should explicitly declare it with the OPTION command, or set its libraries to shared or static directly on each ADD_LIBRARY command. 2001-07-10 12:09:18 -04:00
Ken Martin ae2723878e better arg support 2001-07-02 14:38:39 -04:00
Bill Hoffman a5cda2217d ENH: fix install for cygwin, build cmake from configure 2001-06-27 15:42:27 -04:00
Ken Martin b5c6730f70 added help options 2001-06-27 11:35:08 -04:00
Brad King 10e0197054 BUG: Fixed generation of cMakeRoot in one case. 2001-06-22 12:18:52 -04:00
Bill Hoffman 900f1be244 BUG: fix for unix 2001-06-21 17:41:23 -04:00
Bill Hoffman 18b2449ca2 ENH: clean up 2001-06-21 17:25:35 -04:00
Bill Hoffman 31ab42e5b7 ENH: look in the PREFIX dir for the modules 2001-06-21 17:20:03 -04:00
Bill Hoffman a2b757aa2d ENH: better ability to find cmake program 2001-06-21 16:34:13 -04:00
Ken Martin 0ff3bdba20 better install support 2001-06-21 12:01:18 -04:00
Bill Hoffman adbae91cb5 ENH: fix cmake so it can boot strap itself better 2001-06-20 13:56:38 -04:00
Brad King a5087b8cca ENH: CMake now always adds the BUILD_SHARED_LIBS cache entry. The BUILD_SHARED_LIBRARIES command that used to be used is now deprecated. 2001-06-19 15:50:39 -04:00
Bill Hoffman 145fac96fc ENH: move EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH initial creation to after the CMakeLists.txt files have been parsed 2001-06-18 15:31:43 -04:00
Bill Hoffman 78ee6660a7 ENH: fix EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH for unix 2001-06-13 17:03:49 -04:00
Brad King 0929dbbacf ERR: int -> unsigned int. 2001-06-12 08:30:12 -04:00
Ken Martin 667a57d157 minor fix in error checking 2001-06-11 18:00:38 -04:00
Bill Hoffman 4f77d737c9 ENH: move utilities to targets from makefile, and add versioning to cache 2001-06-07 14:52:29 -04:00
Bill Hoffman 01b980591b BUG: fix edit of directories 2001-05-31 15:48:35 -04:00
Bill Hoffman 4179c991f4 ENH: change MFC gui to use cmake class 2001-05-30 15:28:55 -04:00
Ken Martin ad92f34fea added version number 2001-05-24 11:47:21 -04:00
Ken Martin 768134c690 command line fixes for win32 2001-05-23 16:28:34 -04:00
Ken Martin 5d05b44844 fixed quoted cmake 2001-05-23 15:49:18 -04:00
Bill Hoffman 26f638248d BUG: remove declaration without variable 2001-05-21 14:17:19 -04:00
Ken Martin d7976058e4 bug fix in finding CMAKE_ROOT 2001-05-21 11:13:56 -04:00
Ken Martin 06f403b274 updated for out of tree builds 2001-05-21 09:50:24 -04:00
Ken Martin 619864c09e new out of place builds 2001-05-21 09:32:11 -04:00
Ken Martin 72bc7951be new command 2001-05-18 15:25:08 -04:00