summaryrefslogtreecommitdiffstats
path: root/Tests/OutOfSource
Commit message (Collapse)AuthorAgeFilesLines
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-6/+6
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Drop Visual Studio 8 2005 generatorBrad King2018-04-021-2/+2
| | | | This generator has been deprecated since CMake 3.9. Remove it.
* Fix trivial typos in textluzpaz2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* Revise C++ coding style using clang-formatKitware Robot2016-05-164-25/+26
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Ninja: Centralize path conversion in global generator (#15757)Brad King2015-09-252-0/+3
| | | | | | | | | | | | | | | | | In the Ninja generator we run all build rules from the top of the build tree rather than changing into each subdirectory. Therefore we convert all paths relative to the HOME_OUTPUT directory. However, the Convert method on cmLocalGenerator restricts relative path conversions to avoid leaving the build tree with a "../" sequence. Therefore conversions performed for "subdirectories" that are outside the top of the build tree always use full paths while conversions performed for subdirectories that are inside the top of the build tree may use relative paths to refer to the same files. Since Ninja always runs rules from the top of the build tree we should convert them using only the top-level cmLocalGenerator in order to remain consistent. Also extend the test suite with a case that fails without this fix.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-132-5/+5
| | | | | | | | | | | | | | | | | 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-133-40/+40
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Ninja: Add the Ninja generatorPeter Collingbourne2012-02-021-0/+6
|
* Visual Studio 10 has the same bug as 8 so make the path shorterBill Hoffman2009-09-231-2/+2
|
* ENH: Allow custom limit on object file path lengthBrad King2008-08-211-2/+5
| | | | | | | | Some native build tools, particularly those for cross compiling, may have a limit on the length of the full path to an object file name that is lower than the platform otherwise supports. This change allows the limit to be set by the project toolchain file through the variable CMAKE_OBJECT_PATH_MAX.
* ENH: preclean some warningsKen Martin2008-03-251-0/+1
|
* STYLE: remove debug outputAlexander Neundorf2007-07-161-1/+0
|
* BUG: GET_DIRECTORY_PROPERTY(INCLUDE_DIRECTORIES|LINK_DIRECTORIES) wasn'tAlexander Neundorf2007-07-161-0/+6
| | | | | | | | | | | | | | working, for both the result was always empty, since cmMakefile::GetProperty() recognized it as a special property, constructed a correct return value and called cmMakefile::SetProperty() with this list of directories, which then didn't actually set the property, but applied it to the internal vector of include/link directories. The following getPropertyValue in cmMakefile::GetProperty() then still didn't find it and returned nothing. Now for all special property the static string output is used and its content is returned. I'm not sure it is the right way to fix this problem but at least it seems to work and it fixes the Paraview3 build Alex
* BUG: Disable deep-source test on Watcom until it can be fixed. This is a ↵Brad King2007-03-212-7/+11
| | | | new feature for other generators anyway.
* BUG: Reduce long source file name length for WMake.Brad King2007-03-201-0/+7
|
* BUG: Work around VS8 conversion to a relative path for the long source name. ↵Brad King2007-03-201-2/+14
| | | | It takes the nice full path we give it, converts to relative, and then repacks relative on top of the build directory resulting in a path longer than its own maxpath even though the original path given was short enough. Even VS6 dealt with it better.
* ENH: Added computation of object file names that are almost always short ↵Brad King2007-03-163-1/+25
| | | | enough to not exceed the filesystem path length limitation. This is useful when a source file from outside the tree is referenced with a long full path. The object file name previously would contain the entire path which when combined with the build output directory could exceed the filesystem limit. Now CMake recognizes this case and replaces enough of the beginning of the full path to the source file with an md5sum of the replaced portion to make the name fit on disk. This addresses bug#4520.
* BUG: Need to collapse path argument to get_directory_property. This ↵Brad King2006-10-161-0/+4
| | | | addresses bug#3847.
* BUG: Fixed out-of-source subdirectories to work when they are also ↵Brad King2006-10-103-1/+11
| | | | out-of-binary. Updated the OutOfSource test to test this feature.
* ENH: Adding test for multiple source files with the same name but different ↵Brad King2006-07-073-2/+9
| | | | full paths.
* ENH: test get directory properties ability to get props from subdirsKen Martin2005-09-134-5/+26
|
* ENH: convert to work with the new syntax for ADD_SUBDIRECTORYKen Martin2005-09-121-2/+1
|
* ENH: add missing filesBill Hoffman2005-07-142-0/+17
|
* FIX: fix bug 2043 borland compiler and dll problem and add a test for itBill Hoffman2005-07-142-0/+9
|
* ENH: shift to using ADD_SUBDIRECTORYKen Martin2005-06-081-1/+2
|
* ENH: also test for correct Proj dir settingsKen Martin2005-04-121-1/+4
|
* ENH: better test for subdirsKen Martin2005-03-291-2/+2
|
* ENH: big change that includes immediate subdir support, removing the notion ↵Ken Martin2005-03-182-2/+6
| | | | of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
* ENH: added new test for out of dir source treesKen Martin2005-03-144-0/+10