summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'stable-xcode-projects'Brad King2015-04-201-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | 6693590f Xcode: Refine quoting rules for Strings a6331eb8 Xcode: Let PrintComment decide if the comment is non-empty 6e8952c1 Xcode: PrintComment will prepend a whitespace itself before the comment 4bd2544b Xcode: Do not add whitespace after attribute group opening brace 5cb4c838 Xcode: Properly indent PBXFileReference and PBXBuildFile a723427b Xcode: Remove extra space in PBXProject comment 2fe8bca5 Xcode: Add comment after root object 2e0e205e Xcode: Indent using tabs 7b68c8df Xcode: Sort Xcode objects by Id
| * Xcode: Refine quoting rules for StringsGregor Jasny2015-04-171-2/+2
| | | | | | | | | | $ and . do not need to be quoted, but brackets and * must be to not confuse the Xcode parser.
* | Deprecate Visual Studio 7 generator (.NET 2002)Brad King2015-04-155-0/+13
| | | | | | | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* | Deprecate Visual Studio 6 generatorBrad King2015-04-155-0/+15
| | | | | | | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* | Merge topic 'cmake-cleanups'Brad King2015-04-133-0/+53
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 07d44d63 cmake: Remove confusing duplication. ea819b29 cmMakefile: Remove unused method. 6ad86c7f cmMakefile: Remove bad comment. fca2b542 cmMakefile: Internalize setting of CMakeInstance on Properties. 7bb4e3db cmMakefile: Out-of-line Home directory accessors. 6241253a cmake: Out-of-line Home and Start directory methods. 0ee3ccb3 cmake: Fix variable name bugs. 57dd094e Use vector, not list for cmCommand storage. 6deb43e6 Remove some files which do not need to be in BootstrapCommands. ecdb1b3b Add some missing includes. 04b307b9 cmake: Simplify CommandExists method. 0f1f324b cmake: Rename oddly named variables. 275185ac cmake: Constify GetCommand method. c57f086a cmake: Don't lower-case a string needlessly. 23368c9b cmake: Use make_pair instead of Foo::value_type. 14c70b8c cmake: out-of-line try compile state methods. ...
| * | Test expected value of DEBUG_CONFIGURATIONS global property.Stephen Kelly2015-04-123-0/+53
| | |
* | | Merge topic 'cmake-G-print-generators'Brad King2015-04-132-2/+6
|\ \ \ | | | | | | | | | | | | | | | | 588dcb33 cmake: Provide guidance when an invalid -G option is given
| * | | cmake: Provide guidance when an invalid -G option is givenGerald Combs2015-04-102-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Print a list of generators if no generator or an invalid one is supplied. Signed-off-by: Gerald Combs <gerald@wireshark.org>
* | | | Merge topic 'move-command-line-tests'Brad King2015-04-1338-0/+108
|\ \ \ \ | |/ / / | | | | | | | | | | | | 4e039a9a Tests: Move more command line tests into RunCMake.CommandLine
| * | | Tests: Move more command line tests into RunCMake.CommandLineBrad King2015-04-1038-0/+108
| |/ / | | | | | | | | | | | | | | | Port most CMakeTestBadCommandLines test cases to RunCMake.CommandLine and drop the former test. Add validation of expected results, which was not done by the old test.
* | | Merge topic 'emulator-property'Brad King2015-04-131-0/+8
|\ \ \ | |/ / |/| | | | | | | | c9e9c31c Tests: Create pseudo_emulator output dir for Xcode 2.x
| * | Tests: Create pseudo_emulator output dir for Xcode 2.xBrad King2015-04-101-0/+8
| | | | | | | | | | | | | | | Apply the workardound from commit v2.8.2~598 (Create CMakeLibTests output dir for Xcode, 2009-12-09) to the pseudo_emulator tool.
* | | Tests: Consolidate, refactor and extend -E tar testsNils Gladitz2015-04-1038-13/+198
| | |
* | | cmake: Teach "-E tar" command a "--format=" optionNils Gladitz2015-04-103-0/+3
| |/ |/| | | | | | | | | | | Allows specifying a libarchive defined archive format currently restricted to 7zip, gnutar, pax, paxr and zip. The default is "paxr" (pax restricted).
* | Merge topic 'link-implicit-libs-full-path'Brad King2015-04-0919-2/+105
|\ \ | | | | | | | | | | | | | | | | | | 882f48e5 Link libraries by full path even in implicit directories 318cd370 Help: Add link target for Find Modules section of cmake-developer.7 1535dcd8 Tests: Teach RunCMake to optionally merge command output to stdout
| * | Link libraries by full path even in implicit directoriesBrad King2015-04-0918-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When CMP0003 was first introduced we wanted to link all libraries by full path. However, some projects had problems on platforms where find_library would find /usr/lib/libfoo.so when the project really wanted to link to /usr/lib/<arch>/libfoo.so and had been working by accident because pre-CMP0003 behavior used -lfoo to link. We first tried to address that in commit v2.6.0~440 (Teach find_library to avoid returning library paths in system directories, 2008-01-23) by returning just "foo" for libraries in implicit link directories. This caused problems for projects expecting find_library to always return a full path. We ended up using the solution in commit v2.6.0~366 (... switch library paths found in implicit link directories to use -l, 2008-01-31). However, the special case for libraries in implicit link directories has also proven problematic and confusing. Introduce policy CMP0060 to switch to linking all libraries by full path even if they are in implicit link directories. Explain in the policy documentation the factors that led to the original approach and now to this approach.
| * | Tests: Teach RunCMake to optionally merge command output to stdoutBrad King2015-04-071-2/+8
| | | | | | | | | | | | | | | | | | | | | Some tests may need to read "cmake --build" output passed through from native build tools and do not know if it will be on stdout or stderr. Optionally use the same variable for the execute_process output so that it merges them and we can always match using expected stdout.
* | | Merge topic 'emulator-property'Brad King2015-04-0811-0/+102
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 1975d53a Help: Add notes for topic 'emulator-property' 9160d6c2 TestGenerator: Add CROSSCOMPILING_EMULATOR support. e942526b try_run: Use CMAKE_CROSSCOMPILING_EMULATOR. 579c4bec Properties: Add CROSSCOMPILING_EMULATOR target property.
| * | TestGenerator: Add CROSSCOMPILING_EMULATOR support.Matt McCormick2015-04-084-0/+22
| | | | | | | | | | | | | | | | | | Prefix test commands with the CROSSCOMPILING_EMULATOR property for target executables. This allows test suites to be run on the host when crosscompiling.
| * | try_run: Use CMAKE_CROSSCOMPILING_EMULATOR.Matt McCormick2015-04-084-1/+21
| | | | | | | | | | | | | | | | | | | | | If the CMAKE_CROSSCOMPILING_EMULATOR variable is defined, and CMAKE_CROSSCOMPILING is TRUE, then use CMAKE_CROSSCOMPILING_EMULATOR to run the try_run executables. This prevents the need to populate TryRunResults.cmake when cross compiling.
| * | Properties: Add CROSSCOMPILING_EMULATOR target property.Matt McCormick2015-04-076-0/+60
| |/ | | | | | | | | | | | | Add CROSSCOMPILING_EMULATOR target property for executables. This is used by subsequent patches to run exectuables created for the target system when crosscompiling. The property is initialized by the CMAKE_CROSSCOMPILING_EMULATOR variable when defined.
* | Merge topic 'xcode-quote-path'Brad King2015-04-084-0/+11
|\ \ | |/ |/| | | | | dfd6f1f2 Xcode: Also quote strings containing // (#15487)
| * Xcode: Also quote strings containing // (#15487)Gregor Jasny2015-04-044-0/+11
| | | | | | | | | | | | Otherwise those will be interpreted as start of a comment Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
* | Merge topic 'cpack-one-component-only'Brad King2015-04-061-1/+0
|\ \ | | | | | | | | | | | | 0ffd3534 CPack single component packaging
| * | CPack single component packagingDomen Vrankar2015-04-051-1/+0
| |/ | | | | | | | | | | | | | | RPM, DEB and archive packages were not created in cases when CPACK_<generator>_COMPONENT_INSTALL was set to ON and a single component existed. Patch also changes CPackRPM test to implicitly test for this case.
* | Merge topic 'makefile-depscan-BOM'Brad King2015-04-066-0/+43
|\ \ | | | | | | | | | | | | af924827 Makefile: Tolerate a BOM while scanning source dependencies (#15493)
| * | Makefile: Tolerate a BOM while scanning source dependencies (#15493)Brad King2015-04-036-0/+43
| |/ | | | | | | | | | | | | Otherwise an #include directive on the first line of a source file is ignored if the file contains a Byte-Order-Mark. Suggested-by: Aleksey Konovalov <konovalov.aleks@gmail.com>
* | Merge topic 'test_cpack_symlinks'Brad King2015-04-064-0/+35
|\ \ | |/ |/| | | | | | | 5f686b8a Tests: Add case for CPack source package with symlinks aca1d93b cpack: Disable CMake Cygwin legacy warning while packaging
| * Tests: Add case for CPack source package with symlinksBill Hoffman2015-04-064-0/+35
| |
* | Do not treat DEFINITIONS as a built-in directory propertyStephen Kelly2015-04-0212-0/+85
| | | | | | | | | | | | | | | | Add policy CMP0059 to cover this change. The property has been deprecated since CMake 2.4 anyway. This will help clean up cmMakefile -- the DefineFlagsOrig member should not need to exist.
* | Merge topic 'ctest-repeat-until-fail'Brad King2015-04-011-11/+11
|\ \ | |/ |/| | | | | b687d672 Tests: Fix RunCMake.CTestCommandLine expected output time matching
| * Tests: Fix RunCMake.CTestCommandLine expected output time matchingBrad King2015-03-311-11/+11
| | | | | | | | | | | | When matching ctest command-line output, we must account for the formatting of times that take 10 seconds or more. The values are right-justified, so use " +" to match any amount of space before them.
* | Merge topic 'add_dependencies-INTERFACE-libraries'Brad King2015-03-304-12/+0
|\ \ | | | | | | | | | | | | | | | ac14cbf0 Allow add_dependencies() on INTERFACE libraries (#15414) 817d31db Help: Format add_dependencies documentation
| * | Allow add_dependencies() on INTERFACE libraries (#15414)Brad King2015-03-274-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit v3.0.0-rc1~175^2~20 (add_dependencies: Disallow use with INTERFACE_LIBRARY, 2013-12-25). Teach our dependency analysis to transitively follow INTERFACE target utility dependencies as was done or IMPORTED targets in commit v2.8.6~127^2~1 (Allow add_dependencies() on imported targets, 2010-11-19). Extend the InterfaceLibrary test with a case to cover header generation for a header-only INTERFACE library via a custom target.
* | | ExternalData: Add option to recursively match under directoriesBrad King2015-03-2710-0/+33
|/ / | | | | | | | | | | Extend the ``DATA{Dir/,...}`` syntax with a new ``RECURSE:`` option to enable recursive matching of associated files. This will allow an entire directory tree of data to be referenced at once.
* | Merge topic 'ninja-require-byproducts'Brad King2015-03-2318-0/+95
|\ \ | | | | | | | | | | | | | | | | | | | | | bd9c7f9b Ninja: Add policy to require explicit custom command byproducts ed8e30b0 cmGlobalNinjaGenerator: Optimize handling of known build outputs ad094f43 cmGlobalNinjaGenerator: Fix spelling of "unknown" 82a37d3c cmGlobalNinjaGenerator: Drop unused member
| * | Ninja: Add policy to require explicit custom command byproductsBrad King2015-03-2018-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add policy CMP0058 to avoid generating 'phony' ninja rules for unknown custom command dependencies. This requires projects to specify their custom command byproducts explicitly. With this requirement we no longer have to assume that unknown custom command dependencies are generated and can instead simply assume they are source files expected to exist when the build starts. This is particularly important in in-source builds. It is also helpful for out-of-source builds to allow Ninja to diagnose missing files before running custom command rules that depend on them.
* | | Merge topic 'ctest-repeat-until-fail'Brad King2015-03-2314-0/+97
|\ \ \ | | |/ | |/| | | | | | | | | | 6bce0276 Help: Add notes for topic 'ctest-repeat-until-fail' fde70a1b ctest: Add a new --repeat-until-fail option
| * | ctest: Add a new --repeat-until-fail optionBill Hoffman2015-03-2314-0/+97
| | | | | | | | | | | | | | | This option tells ctest to run each test N times until the test fails or the N times have run. This is useful for finding random failing tests.
* | | file: Teach GLOB to list directories optionallyDomen Vrankar2015-03-2013-0/+122
| |/ |/| | | | | | | | | GLOB lists directories by default and GLOB_RECURSE does not. LIST_DIRECTORIES enables user to control the behavior explicitly for consistently for both GLOB and GLOB_RECURSE.
* | FindMatlab: Rewrite module and provide a usage APIRaffi Enficiaud2015-03-178-0/+68
| | | | | | | | | | | | | | | | | | | | | | Implement a brand new FindMatlab module: - Add support for versions and components. - Find Matlab and its version in a more precise and multiplatform way. - Add API to create a new mex extension with documentation. - Add API to add matlab unit tests (with or without the unit test framework). - Find as much as possible based on a single Matlab_ROOT_DIR cache entry and allow the user to change it to re-find everything.
* | Merge topic 'main_dependency_diagnostic'Brad King2015-03-1211-0/+70
|\ \ | | | | | | | | | | | | 242c3966 add_custom_command: Diagnose MAIN_DEPENDENCY limitation.
| * | add_custom_command: Diagnose MAIN_DEPENDENCY limitation.Nils Gladitz2015-03-0911-0/+70
| |/ | | | | | | | | The new policy CMP0057 diagnoses reuse of the same MAIN_DEPENDENCY across multiple custom commands.
* | Merge topic 'target-language-genex'Brad King2015-03-1045-1/+255
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 232a6883 Help: Add release notes for target-language-genex. 9e168941 File(GENERATE): Process genex evaluation files for each language. b734fa44 Genex: Allow COMPILE_LANGUAGE when processing include directories. 0b945ea9 Genex: Allow COMPILE_LANGUAGE when processing compile definitions. 5c559f11 Genex: Enable use of COMPILE_LANGUAGE for compile options. e387ce7d Genex: Add a COMPILE_LANGUAGE generator expression. 4a0128f4 VS6: Compute CMAKE_*_FLAGS and COMPILE_DEFINITIONS* only when needed
| * | File(GENERATE): Process genex evaluation files for each language.Stephen Kelly2015-03-095-1/+32
| | |
| * | Genex: Allow COMPILE_LANGUAGE when processing include directories.Stephen Kelly2015-03-095-0/+30
| | | | | | | | | | | | Issue an error if this is encountered by an IDE generator.
| * | Genex: Allow COMPILE_LANGUAGE when processing compile definitions.Stephen Kelly2015-03-095-0/+30
| | | | | | | | | | | | Issue an error if this is encountered by an IDE generator.
| * | Genex: Enable use of COMPILE_LANGUAGE for compile options.Stephen Kelly2015-03-0911-0/+44
| | | | | | | | | | | | | | | | | | Follow-ups will allow the use of the generator expression for compile definitions and include directories for non-IDE generators.
| * | Genex: Add a COMPILE_LANGUAGE generator expression.Stephen Kelly2015-03-0722-0/+119
| |/
* | Merge topic 'configure_file-NEWLINE_STYLE-no-warn'Brad King2015-03-1023-0/+78
|\ \ | |/ |/| | | | | | | 024e25e4 Tests: Add more signature tests to RunCMake.configure_file test 3ef776fc configure_file: Do not warn about newline style arguments