summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Preserve ENV{MAKEFLAGS} in CMake script modeBrad King2010-06-211-10/+10
| | | | | | | | Commit 02f7cfbc (Need to remove the MAKEFLAGS when cmake starts, 2003-05-13) removed the MAKEFLAGS environment variable when CMake starts to prevent try_compile() from inheriting "make -i". This is unnecessary in script mode (cmake -P). Instead remove the variable only when configuring a project.
* Enable extra CodeBlocks generator on CygwinBrad King2010-01-131-3/+1
| | | | | This generator builds correctly on Cygwin so it should be enabled. Change based on patch from issue #10122.
* Fix mem leak reported by valgrind.David Cole2009-12-281-3/+3
|
* disable cmake's verbose output in the Eclipse and KDevelop generatorsAlexander Neundorf2009-12-231-5/+9
| | | | | | | | | | | | The Eclipse and KDevelop generators set the VERBOSE environment variable to TRUE in the project files, because they must be able to "see" the full command lines and errors, otherwise they can't parse the errors. But the VERBOSE env.var. also enables cmakes own verbose output, which can be quite long. This commit introduces an environment variable CMAKE_NO_VERBOSE, which when set disables cmake's verbose output also when VERBOSE is set. This env.var is now set by both the Eclipse and the KDevelop generators. Alex
* Remove unused DumpDocumentation codeBrad King2009-12-081-28/+0
| | | | | | | The DumpDocumentation executable and some supporting code and tests were completely unused by CMake. Generation of documentation is done by the individual executables with --help* options. In this commit we simply remove the unused code, executable, and test.
* Removed duplicated documentation entry.Zach Mullen2009-11-091-5/+0
|
* fix line length errorBill Hoffman2009-11-081-2/+3
|
* Add JOM support and clean up some of the tar -E stuffBill Hoffman2009-11-051-4/+12
|
* WIP: VS 10 Win64 generatorBrad King2009-10-221-0/+3
| | | | See issue #9754.
* Use copies for versioned names on WindowsBrad King2009-10-211-0/+4
| | | | | | | | | | | | | | | 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.
* Factor out "cmake -E cmake_symlink_*" codeBrad King2009-10-211-51/+57
| | | | | | | | | | | | | | 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.
* REALLY fix color check for dependency scanningBrad King2009-10-081-2/+3
| | | | | | | 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.
* Really fix color check for dependency scanningBrad King2009-10-081-1/+1
| | | | | | | 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.
* Fix warnings in CMake source code. Suppress rampant warnings emanating from ↵David Cole2009-10-011-2/+8
| | | | Qt files.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | 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.
* Fix typo in nameBill Hoffman2009-09-171-1/+1
|
* Fix for bug #8969, pick a better default version for VS, and make it easier ↵Bill Hoffman2009-09-151-27/+24
| | | | to add new versions of VS to look for.
* Fix for Bug #9190, -U did not work on case insensitive file systems because ↵Bill Hoffman2009-09-141-1/+1
| | | | of call to glob convert to regex that expected to work with files.
* Remove barely-used cmCacheManager::AddCacheEntryBrad King2009-09-111-2/+3
| | | | | | | 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.
* Simplify VS CMake re-run checkBrad King2009-09-041-11/+0
| | | | | | | | | | | | 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.
* Remove CMakeSetup. Long live cmake-gui, start building Qt now.Bill Hoffman2009-09-031-1/+1
|
* Use the MANIFEST flag for non incremental linking as well.Bill Hoffman2009-09-011-0/+1
|
* Move /MANIFEST flag into -E vs_link. This is so it can be used by the intel ↵Bill Hoffman2009-09-011-7/+2
| | | | compilers without having to specifiy it in the intel compiler files
* Handle embeded manifests with ifort.Bill Hoffman2009-09-011-1/+7
|
* Create GLOBAL_DEPENDS_NO_CYCLES propertyBrad King2009-08-241-0/+10
| | | | | This global property disallows cycles in the inter-target dependency graph even among STATIC libraries. See issue #9444.
* DOCS: fix typo (#9231)Alexander Neundorf2009-07-311-1/+1
| | | | Alex
* BUG: Do not double-initialize local generatorsBrad King2009-07-281-5/+0
| | | | | | | | | 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.
* ENH: first pass at VS 10, can bootstrap CMake, but many tests still failBill Hoffman2009-06-251-0/+3
|
* STYLE: fix typos in the docsAlexander Neundorf2009-04-191-1/+1
| | | | Alex
* ENH: Create command line api "cmake -E rename"Brad King2009-04-151-0/+16
| | | | | | 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.
* ENH: Allow projects to disable per-rule echo linesBrad King2009-03-161-7/+7
| | | | | | | | | 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.
* ENH: Allow projects to disable per-rule progressBrad King2009-03-161-0/+14
| | | | | | | | 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.
* BUG: Fix cache properties for CMAKE_STRICT buildBrad King2009-03-131-1/+1
| | | | | All cmPropertyMap instances must have CMakeInstance set. This teaches cmCacheManager to set it on cache entries.
* ENH: Document CACHE entry propertiesBrad King2009-03-101-0/+1
| | | | | This adds a property documentation section for CACHE properties. We document the ADVANCED, HELPSTRING, TYPE, and VALUE properties.
* ENH: Overhaul CMake version numberingBrad King2009-03-051-3/+1
| | | | | | | | | | | | | 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.
* STYLE: Remove unused cmake::CacheVersionMatchesBrad King2009-03-051-20/+0
| | | | This remove the method completely since nothing uses it.
* ENH: Cleanup cmake --build interface.Brad King2009-03-041-48/+2
| | | | | | | | | | | 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.
* BUG: Gracefully handle broken version symlinksBrad King2009-03-021-3/+9
| | | | | | | 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.
* ENH: Define RULE_LAUNCH_* propertiesBrad King2009-02-101-0/+25
| | | | | | | 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.
* BUG: Fix OS X FW symlink byproduct dependenciesBrad King2009-02-061-1/+2
| | | | | | 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.
* BUG: Fix OS X AppBundle/FW byproducts dependenciesBrad King2009-02-061-0/+21
| | | | | | | 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.
* ENH: More robust property lookupBrad King2009-02-021-0/+4
| | | | | | 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.
* BUG: fix for #8418 -E chdir should return fail of dir does not existBill Hoffman2009-01-291-1/+1
|
* COMP: Fix the ExternalProject test for Visual Studio 6. Visual Studio 6 ↵David Cole2008-12-091-0/+8
| | | | *.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.
* ENH: fix bootstrap test and warningBill Hoffman2008-10-151-2/+8
|
* BUG: 4244, add a --build option to cmake that can build projects configured ↵Bill Hoffman2008-10-151-2/+88
| | | | by CMake
* BUG: fix for 6280, -E time was not sending back return valueBill Hoffman2008-10-011-3/+3
|
* STYLE: fix line length stuff for KWStyleBill Hoffman2008-10-011-1/+2
|
* ENH: Teach find_library to find OpenBSD-style libsBrad King2008-09-221-0/+7
| | | | | | | 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.
* ENH: Allow a custom list of debug configurationsBrad King2008-09-041-0/+51
| | | | | | Create a DEBUG_CONFIGURATIONS global property as a way for projects to specify which configuration names are considered to be 'debug' configurations.