summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Remove some c_str() calls.Stephen Kelly2014-03-111-2/+2
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* stringapi: Use strings for cache iterator valuesBen Boeckel2014-03-081-4/+1
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-2/+2
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Remove CMake Policy CMP0015 until it is revisedBrad King2009-10-081-1/+0
| | | | | | | | | | | | | | | | | | | | We revert commit "Create CMake Policy CMP0015 to fix set(CACHE)" because the NEW behavior of the policy breaks a valid use case: # CMakeLists.txt option(BUILD_SHARED_LIBS "..." ON) add_library(mylib ...) set(BUILD_SHARED_LIBS OFF) # we want only mylib to be shared add_subdirectory(ThirdParty) # ThirdParty/CMakeLists.txt option(BUILD_SHARED_LIBS "..." ON) # uh, oh, with NEW behavior this dir uses shared libs!!! We'll re-introduce the policy later with a different change in behavior to resolve the motivating case, which was more subtle but less common. See issue #9008.
* 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 option() interpretation of non-boolean valuesBrad King2009-09-111-1/+2
| | | | | | The commit "Remove barely-used cmMakefile::AddCacheDefinition" broke option() calls that pass a non-boolean default value. We restore the old behavior by always coercing the value to 'ON' or 'OFF'.
* Create CMake Policy CMP0015 to fix set(CACHE)Brad King2009-09-101-0/+1
| | | | | | | | The set(CACHE) and option() commands should always expose the cache value. Previously we failed to expose the value when it was already set if a local variable definition hid it. When set to NEW, this policy tells the commands to always remove the local variable definition to expose the cache value. See issue #9008.
* Remove barely-used cmMakefile::AddCacheDefinitionBrad King2009-09-101-4/+2
| | | | | | | | The boolean overload of this method was used only to implement option(). We re-implement option() in terms of the main method and removes the now-unused signature. This removes some duplicate code that had already fallen behind on changes (it was not removing the local definition instead of setting it).
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-1/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* STYLE: fix line lengthKen Martin2006-05-121-3/+4
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-3/+3
|
* BUG: fix for 282Bill Hoffman2004-04-151-0/+1
|
* ERR: Fix problems with OPTION and -D on command line. Fix Bug #408 - Using ↵Andy Cedilnik2003-12-291-9/+18
| | | | -D without a type does not always work
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* WAR: remove warnings for .NET compilerBill Hoffman2002-04-251-1/+1
|
* ENH: backwards compatible for VTK 4.0, add cmake version requiresBill Hoffman2002-04-171-3/+24
|
* ENH: add error checking for option commands with too many argumentsBill Hoffman2002-03-111-1/+1
|
* ENH: expand variables in arguments before the commands get themBill Hoffman2002-03-051-1/+0
|
* ENH:Updated copyrightWill Schroeder2002-01-211-29/+5
|
* ENH: do not write over existing cache values even doc strings to avoid ↵Berk Geveci2001-11-271-6/+0
| | | | changing the cache file
* ENH: change InitialPass to take a const reference to the argument string, to ↵Bill Hoffman2001-09-201-1/+1
| | | | avoid changes to the file cache
* Allow option value to be expanded (thus, we can use the value of another ↵Sebastien Barre2001-08-191-3/+4
| | | | option as default)
* ENH: big change, only allow commands access to the cache via the cmMakefile ↵Bill Hoffman2001-08-081-9/+6
| | | | class and GetDefinition, also the cmMakefile is the only way for commands to add to the cache. Also, some changes to configure.in that check for for scoping
* ENH: rename Invoke to InitialPassBill Hoffman2001-06-061-1/+1
|
* ENH: move testing stuff to cmake from configure, good bye dashboard... :)Bill Hoffman2001-05-041-2/+7
|
* ENH:New copyrightWill Schroeder2001-04-271-3/+28
|
* better helpKen Martin2001-04-261-3/+6
|
* ENH: add help for cache entriesBill Hoffman2001-04-261-1/+3
|
* many fixes and cleanup and featuresKen Martin2001-04-241-1/+1
|
* BUG: fix build directory problemBill Hoffman2001-04-241-2/+1
|
* new commandKen Martin2001-04-231-0/+43