summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmSet: Replace loop with cmJoin.Stephen Kelly2015-02-111-11/+1
|
* Replace foo.size() pattern with !foo.empty().Stephen Kelly2015-01-181-1/+1
|
* Remove some unneeded c_str calls.Stephen Kelly2014-11-231-2/+2
|
* Remove some c_str() calls.Stephen Kelly2014-03-111-1/+1
| | | | | | 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.
* Use new cmHasLiteralPrefix functionStephen Kelly2013-11-211-1/+1
|
* set: Fix handling of empty value with PARENT_SCOPEDaniele E. Domenichelli2013-11-131-9/+2
| | | | | | | | | | | | | Just as set(VAR "") sets VAR to an empty string in the current scope, the code set(VAR "" PARENT_SCOPE) is documented to set the variable to an empty string in the parent scope. Fix the implementation to make it so.
* set: Handle value-less PARENT_SCOPE explicitlyDaniele E. Domenichelli2013-11-131-0/+8
| | | | | | The code "set(VAR PARENT_SCOPE)" unsets VAR in the parent scope. Implement this case explicitly next to where "set(VAR)" is explicitly handled to unset VAR in the current scope.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-10/+10
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Fix spelling errors reported by Lintian.Kai Wasserbäch2010-07-131-1/+1
| | | | | During a Lintian run on the binary packages of CMake in Debian I was notified of many spelling mistakes.
* 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.
* Add parentheses around '&&' between '||' for gccBrad King2009-09-111-3/+3
| | | | | | | The GNU compiler warns about possible operator precedence mistakes and asks for explicit parentheses (-Wparentheses). We add the parentheses to silence the warning. This also fixes one real logic error in the find_package() implementation by correcting expression evaluation order.
* 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.
* STYLE: cacheStart is used only locally in the if-branchAlexander Neundorf2009-05-101-2/+1
| | | | Alex
* BUG: fix issue with -D and cache forceBill Hoffman2008-11-211-1/+1
|
* ENH: Simplify error message for invalid set(... CACHE) calls to make it look ↵Brad King2008-03-131-11/+1
| | | | nicer with new message format.
* 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
* ENH: remove RAISE_SCOPE() again and instead add SET(<var> <value> PARENT_SCOPE)Alexander Neundorf2008-01-181-10/+37
| | | | Alex
* COMP: Fix and/or disable warnings for Borland 5.6 build.Brad King2006-08-011-1/+1
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-4/+4
|
* BUG: Remove memory leakAndy Cedilnik2005-06-031-0/+1
|
* COMP: fix unused var warningKen Martin2005-01-201-1/+0
|
* ENH: now the set command can set environment variablesKen Martin2005-01-201-1/+36
|
* ENH: fixed SET command to accept cache values with more than one valueKen Martin2005-01-041-49/+30
|
* BUG: A variable is not in the cache if it is UNINITIALIZED.Brad King2002-11-081-1/+1
|
* 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.
* Remove warningAndy Cedilnik2002-10-101-3/+6
|
* added FORCE optionKen Martin2002-10-091-6/+12
|
* BUG: fix doc string and allow a variable to be promoted from non-cache to cacheBill Hoffman2002-09-271-7/+9
|
* ENH: If SET(VAR) is called with no other arguments, remove the definition of ↵Brad King2002-09-181-1/+2
| | | | VAR.
* ENH: add enable language support for PROJECT command, this means that a C ↵Bill Hoffman2002-04-021-1/+1
| | | | only project can be built with cmake, even without a cxx compiler
* FIX: get rid of warningsSebastien Barre2002-03-301-1/+1
|
* ENH: add ability to use ; separated lists in SET and expand them for ↵Bill Hoffman2002-03-291-1/+19
| | | | addexecutable and addlibrary
* ENH: expand variables in arguments before the commands get themBill Hoffman2002-03-051-2/+0
|
* ENH:Updated copyrightWill Schroeder2002-01-211-29/+5
|
* ENH: change InitialPass to take a const reference to the argument string, to ↵Bill Hoffman2001-09-201-2/+2
| | | | avoid changes to the file cache
* ENH: Added extra newline in an error message to improve readability.Brad King2001-09-201-0/+1
|
* BUG: cmSystemTools::CollapseFullPath is a bad thing to call on the compiler ↵Bill Hoffman2001-08-201-5/+0
| | | | which is a filepath
* If the value is a path, collapse it (cleaner)Sebastien Barre2001-08-191-0/+5
|
* ENH: big change, only allow commands access to the cache via the cmMakefile ↵Bill Hoffman2001-08-081-7/+10
| | | | 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: add better error checkingBill Hoffman2001-06-041-0/+15
|
* bug meaning that set(a b) just set a to "" and not to bGeoffrey Cross2001-05-251-1/+7
|
* ENH: change the syntax of the SET command, fix the combo box for larger stringsBill Hoffman2001-05-241-48/+53
|
* BUG: fix compiler nameBill Hoffman2001-05-211-1/+1
|
* ENH: allow cache to override config fileBill Hoffman2001-05-181-25/+51
|
* ENH: unify make process on unixBill Hoffman2001-05-161-1/+20
|
* new set command and IF NOTKen Martin2001-05-011-0/+70