summaryrefslogtreecommitdiff
path: root/Tests/FunctionTest
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix CMP0054 warningsBrad King2014-09-161-1/+1
| | | | | Hack the CMP0054 warning locally to be an error and run the test suite. Resolve CMP0054 in Tests/* code as appropriate for each case.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-133-46/+46
| | | | | | | | | | | | | | | | | 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
* Convert CMake-language commands to lower caseKitware Robot2012-08-132-74/+74
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* VS2010: Honor PROJECT_LABEL target property (#10611)David Cole2010-09-091-0/+8
|
* Test add_subdirectory inside functionBrad King2009-09-161-0/+35
| | | | | | | This commit teaches the FunctionTest to check variable scope behavior when a subdirectory is added inside a function call. Any PARENT_SCOPE sets in the subdirectory should affect only the function scope which called add_subdirectory and not its parent scope.
* ENH: Improve strictness of Function testBrad King2009-07-221-4/+14
| | | | | | The command "set(... PARENT_SCOPE)" should never affect the calling scope. This improves the Function test to check that such calls in a subdirectory scope affect the parent but not the child.
* ENH: Remove CMAKE_ANSI_CFLAGS from testsBrad King2009-07-081-2/+0
| | | | | As of CMake 2.6 this variable is not defined, and the ANSI flags for the HP compiler are simply hard-coded in the default C flags.
* ENH: preclean some warningsKen Martin2008-03-251-0/+1
|
* ENH: remove RAISE_SCOPE() again and instead add SET(<var> <value> PARENT_SCOPE)Alexander Neundorf2008-01-183-9/+10
| | | | Alex
* ENH: change raise_scope signature to be safer for returned varuablesKen Martin2008-01-033-8/+32
|
* BUG: Make RAISE_SCOPE function work when variable is not defined.Brad King2008-01-022-0/+30
|
* ENH: add functions and raise scope to cmakeKen Martin2007-12-032-0/+93