summaryrefslogtreecommitdiffstats
path: root/Tests/BuildDepends/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: Fix multiple custom command outputs with one missingBrad King2015-04-101-0/+65
| | | | | | | | | | | | | | | | The use of "cmake -E touch_nocreate" added in commit v3.2.1~4^2 (Makefile: Fix multiple custom command outputs regression, 2015-03-06) caused builds to fail when one of the outputs is intentionally not created. This was fixed by our parent commit by making touch_nocreate succeed when the file is missing. Add a test case covering it. For the Watcom WMake generator, check for the SYMBOLIC source file property separately on each output. The mark is needed on outputs that are not really created to tell 'wmake' not to complain that it is missing. The mark is also needed on outputs that are created or 'wmake' will not consider them out of date when they exist. Inspired-by: Ben Boeckel <ben.boeckel@kitware.com>
* Tests: Cover rebuild with multiple custom command outputs (#15116)Brad King2014-12-051-0/+28
| | | | | | | | Extend the BuildDepends test with a case covering multiple custom command outputs with the second one consumed by another rule. With the old "multiple output pair" infrastructure used in the Makefile and Xcode generators this did not work. Now that it is fixed, test the case explicitly.
* Tests/BuildDepends: Drop unneeded help for NinjaBrad King2014-11-141-5/+1
| | | | | The extra post-modification invocations of 'ninja' does not seem to be needed anymore for the BuildDepends test to pass.
* Tests/BuildDepends: Make 3-second delay more robustBrad King2014-05-191-2/+1
| | | | | Use "cmake -E sleep 3" instead of execute_process with a TIMEOUT of 3. This avoids using a busy loop or depending on a timeout to kill it.
* ExternalProject: Add option to always run the build stepBrad King2014-02-211-0/+30
| | | | | | | Teach ExternalProject_Add a new BUILD_ALWAYS option to skip using the build step stamp file and execute the step on every build. Extend the BuildDepends test with a case to cover this option.
* Xcode: Teach BuildDepends test that Xcode >= 5 needs no helpBrad King2013-10-081-1/+1
| | | | | | Drop the HELP_XCODE workarounds needed on older Xcode versions when using Xcode >= 5. We now expect builds and rebuilds to work using proper dependencies with no special help.
* Xcode: Teach Tests/BuildDepends to allow LINK_DEPENDS_NO_SHARED failureBrad King2013-10-021-0/+2
| | | | | | Xcode 5.0 now relinks targets when their shared libraries dependencies are modified, and there seems to be no way to stop it. Report this as a known limitation in the test output and do not fail.
* VS 6: Tell BuildDepends test to tolerate ninjadep failureBrad King2013-07-301-0/+3
| | | | | | The VS 6 IDE does not want to recompile a particular source after a particular header it includes is modified, even by hand. For now just silence the failure and document it with a comment.
* Ninja: Update BuildDepends test to verify cmcldeps depfiles.Robert Maynard2013-07-261-0/+36
|
* Teach BuildDepends test to cover LINK_DEPENDS_NO_SHAREDBrad King2012-11-091-0/+34
| | | | | | | | | Build a shared library and an executable linking to it inside the inner test. Set LINK_DEPENDS_NO_SHARED on the executable. Add a custom target to compare the output file times. Verify that on the first build the executable is newer than the library. Then modify a library source file. Verify that on the second build the library is newer because the executable did not have a dependency to re-link.
* Remove CMake multiline block-end command argumentsMarcin Wojdyr2012-08-151-8/+4
| | | | removing arguments omitted in 9db3116226cb99fcf54e936c833953abcde9b729
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-15/+15
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-19/+19
| | | | | | | | | | | | | | | | | 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 wrapper for cl to extract dependenciesPeter Kuemmel2012-06-081-2/+6
| | | | | | | | | | | cmcldeps wraps cl and adds /showInclude before calling cl. It parses the output of cl for used headers, drops system headers and writes them to a GCC like dependency file. cmcldeps uses ATM ninja code for process handling, but could be ported later to SystemTools. TODO: Why needs ninja multiple calls in the BuildDepends test?
* Provide dependency file flags to generatorPeter Collingbourne2012-02-021-0/+2
| | | | | | | Causes compiler modules (currently only GNU) to set a CMAKE_DEPFILE_FLAGS_${lang} variable, which communicates to the generator the flags required to cause the compiler to create dependency files.
* Define LINK_DEPENDS target property (#11406)Brad King2010-11-051-0/+23
| | | | | Custom Makefile link rules may need to depend on linker scripts. Define this property to allow user-specified link-time dependencies.
* Avoid Intel linker crash in BuildDepends testBrad King2009-10-271-0/+8
| | | | | | | The BuildDepends test exercises incremental linking with MSVC and Intel tools on Windows. In some cases the Intel compiler creates objects that cause the MS linker it invokes to crash during incremental linking. We avoid the problem for this test by disabling incremental linking.
* More verbose BuildDepends test outputBrad King2009-10-221-2/+4
| | | | | We teach BuildDepends to always print the output from each try_compile. This may make debugging easier.
* ENH: Update BuildDepends test to check #include lines with macros.Brad King2008-05-141-10/+42
| | | | | | | - Tests IMPLICIT_DEPENDS_INCLUDE_TRANSFORM properties. - See issue #6648. - Works without help in VS IDEs due to native dependency handling. - Xcode needs help to rebuild correctly.
* ENH: preclean some warningsKen Martin2008-03-251-0/+1
|
* BUG: Enable CMAKE_SUPPRESS_REGENERATION because the entire test runs during ↵Brad King2007-12-221-0/+5
| | | | the inital configuration.
* ENH: Add a depends check step to custom targets. Add support for the ↵Brad King2007-12-211-6/+10
| | | | IMPLICIT_DEPENDS feature of custom commands when building in custom targets. Convert multiple-output pair checks to be per-target instead of global.
* ENH: Adding test for ADD_CUSTOM_COMMAND's new IMPLICIT_DEPENDS feature.Brad King2007-09-171-0/+40
|
* COMP: removing the directory at the beginning breaks the test for in-sourceAlexander Neundorf2007-06-141-1/+0
| | | | | | builds Alex
* COMP: fix test, in some cases stdout from bar was not captured correctly,Alexander Neundorf2007-06-131-11/+25
| | | | | | | probably because the process was killed before the fflush() worked because the busy loop blocked the processor (failing midworld test) Alex
* BUG: Report proper error message when project does not build the first time. ↵Brad King2007-05-231-1/+28
| | | | Also added hack to rebuild subproject several times for Xcode. The generator should be fixed and the hack removed.
* BUG: Target names in the COMMAND part of a custom command should not create ↵Brad King2007-05-231-1/+1
| | | | a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created. Target names in a DEPENDS should do both a target-level and file-level dependency. Updated the BuildDepends test to check that this works.
* BUG: fix test for hp move to c++ to avoid ansi issues and produce a message ↵Andy Cedilnik2007-05-161-2/+9
| | | | if the compile fails, (really checked in by Bill H.)
* ENH: add test for build dependsBill Hoffman2007-05-101-15/+27
|
* ENH: add a test to make sure Xcode does not break againBill Hoffman2007-05-091-0/+45