summaryrefslogtreecommitdiffstats
path: root/Tests/Unset
Commit message (Collapse)AuthorAgeFilesLines
* If: Support the 'DEFINED CACHE{}' syntaxRobert Maynard2018-11-091-0/+9
|
* unset: Add PARENT_SCOPE optionBrad King2013-10-081-0/+27
| | | | | | Add an unset() command option to remove a variable from the calling scope, just like the set() command's PARENT_SCOPE option. Teach the Unset test to cover such cases.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-10/+10
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* ENH: Create $CACHE{VAR} syntaxBrad King2008-09-251-0/+14
| | | | | This syntax allows reading of cache entries even when variables of the same name have been defined in the local scope. See issue #7715.
* BUG: Fix Unset test on VS 6Brad King2008-08-302-2/+3
| | | | | Visual Studio 6 does not recognize .cc as a C++ extension by default. Simplify the test to be C-only and use a .c extension.
* ENH: Add unset() command.Brad King2008-08-252-0/+44
This introduces the unset() command to make it easy to unset CMake variables, environment variables, and CMake cache variables. Previously it was not even possible to unset ENV or CACHE variables (as in completely remove them). Changes based on patch from Philip Lowman. See issue #7507.