summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FindTIFF-imported-targets'Brad King2015-12-074-0/+43
|\ | | | | | | | | ebaca629 FindTIFF: Add imported targets and update documentation
| * FindTIFF: Add imported targets and update documentationRoger Leigh2015-12-074-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | - Add TIFF::TIFF imported target - Document imported target - Add testcase to test the standard variables and the imported target Also: - Add TIFF_INCLUDE_DIRS to match common practice - Update documentation generally, including documenting TIFF_INCLUDE_DIRS
* | cmake: Teach -E copy[_if_different] to support multiple files (#15703)Bartosz Kosiorek2015-12-0420-0/+35
| | | | | | | | | | | | If multiple input files are provided then the destination must be a directory. If only one input file is provided then destination may be either a file or directory.
* | cmake: Improve '-E' help message formattingBartosz Kosiorek2015-12-044-4/+4
| |
* | Merge topic 'improve-embarcadero'Brad King2015-12-045-3/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 7a327727 Embarcadero: Fix erroneous interpretation of __CODEGEARC_VERSION__. 25211d75 Compiler ID: Compiler versions must be a valid, numeric version string. 060442c2 Embarcadero: Check code using CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID. f3b3219c Embarcadero/Watcom: Properly skip VSResource test for other generators. ddbda722 Embarcadero: Fix bug where duplicate Ninja job pools would be created.
| * | Compiler ID: Compiler versions must be a valid, numeric version string.James Johnston2015-12-033-0/+21
| | | | | | | | | | | | This test helps catch errors in compiler identification.
| * | Embarcadero: Check code using CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID.James Johnston2015-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The CMAKE_CXX_COMPILER_ID and CMAKE_C_COMPILER_ID variables are set to "Borland" for older versions of the compiler. Newer CodeGear/Embarcadero compilers will have those variables set to "Embarcadero". Search for lines of code referencing both the variable name and Borland to be sure that they also refer to Embarcadero.
| * | Embarcadero/Watcom: Properly skip VSResource test for other generators.James Johnston2015-12-031-2/+1
| |/ | | | | | | | | This test should be skipped based on the chosen compiler, not the chosen generator.
* | Merge topic 'FindBoost-imported-targets'Brad King2015-12-044-0/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | d60cef77 Help: Add notes for topic 'FindBoost-imported-targets.rst' 9fd98750 Tests: Add FindBoost testcase for imported targets 3f9b081f FindBoost: Add imported targets 01c80acd FindBoost: Automatically add missing component dependencies 5183c6e5 FindBoost: Embed component dependency table 8a60e696 Utilities: Add BoostScanDeps script
| * | Tests: Add FindBoost testcase for imported targetsRoger Leigh2015-12-024-0/+58
| |/ | | | | | | Enable by setting CMake_TEST_FindBoost to TRUE.
* | iOS: Fix framework resource directory layout (#15848)Bartosz Kosiorek2015-12-035-4/+41
|/ | | | | | | | A typical iOS application bundle (also Framework Bundle) contains the application executable and any resources used by the application (for instance, the application icon, other images, and localized content) in the top-level bundle directory. The same rule applies to Framework Bundles.
* Explicitly enable deprecated warnings by default.Michael Scott2015-12-013-1/+12
| | | | | | | | | | Explicitly enable deprecated warnings by default, via the cmake::GetSuppressDeprecatedWarnings method, which signals suppression is turned off unless the CMake variables are set as required. Add tests and update the documentation for the new functionality.
* Modify dev warning options to affect deprecated warnings.Michael Scott2015-12-011-0/+13
| | | | | | | | | | | Change the '-Wdev' and '-Wno-dev' options to also enable and suppress the deprecated warnings output, via the 'CMAKE_WARN_DEPRECATED' CMake variable, by default. This action does not happen if the user specifies a deprecated warning message option. Add tests and update the documentation for the new functionality.
* Add -W options to control deprecated warning messages.Michael Scott2015-12-014-0/+14
| | | | | | | | Add 'deprecated' warning options type, to allow setting CMAKE_WARN_DEPRECATED via the -W '-Wdeprecated' and '-Wno-deprecated' options. Add tests for new options and updated documentation.
* Refactor the -W options parser to be generic.Michael Scott2015-12-015-1/+18
| | | | | | Refactor the -Wdev and -Wno-dev options parser to use a generic -W parser that follows the GCC pattern, excluding support for -Werror=TYPE and -Wno-error=TYPE formats for now.
* Explicitly enable author (dev) warnings by default.Michael Scott2015-12-015-0/+14
| | | | | | | | | Explicitly enable author warnings by default, via the cmake::GetSuppressDevWarnings method, which signals suppression is turned off unless the CMake variables are set as required. Add test cases for author and deprecated messages displayed by default.
* Make message suppression more consistent.Michael Scott2015-11-303-3/+18
| | | | | | | | | | | | | | | | Make the message suppression more consistent, by adding a check for the message related CMake variables in cmake::IssueMessage, which allows callers of IssueMessage other than the message command to behave as expected. Also added a check for CMAKE_SUPPRESS_DEVELOPER_WARNINGS in the message command to mirror the deprecated message type behaviour. Added a 'force' flag to the cmake::IssueMessage method, to make the message suppression consistent, when setting the message related CMake variables directly in a CMake file. Expand message command tests to cover the AUTHOR_WARNING message type as well.
* Tests: Revise message in RunCMake.CommandLine -Wdev caseMichael Scott2015-11-303-3/+3
| | | | Use more prose-like capitalization.
* Merge topic 'fix-find_package-version-file-error-stack'Brad King2015-11-2511-0/+22
|\ | | | | | | | | | | | | 62126b67 Merge branch 'test-cmake_policy-unmatched' into fix-find_package-version-file-error-stack 2e28c619 cmState: Skip variable scope snapshots to avoid call stack duplicates b219ff94 Tests: Add case for package version file unmatched policy scope
| * Merge branch 'test-cmake_policy-unmatched' into ↵Brad King2015-11-2418-0/+36
| |\ | | | | | | | | | fix-find_package-version-file-error-stack
| | * Tests: Add case for package version file unmatched policy scopeBrad King2015-11-2411-0/+22
| | |
* | | Merge topic 'test-cmake_policy-unmatched'Brad King2015-11-257-0/+14
|\ \ \ | | |/ | |/| | | | | | | 378185fb Tests: Add case for unmatched cmake_policy({PUSH,POP})
| * | Tests: Add case for unmatched cmake_policy({PUSH,POP})Brad King2015-11-247-0/+14
| | |
* | | Merge topic 'FindXercesC-imported-targets'Brad King2015-11-244-0/+38
|\ \ \ | | | | | | | | | | | | | | | | 5dcc833b FindXercesC: Add imported targets and unit test
| * | | FindXercesC: Add imported targets and unit testRoger Leigh2015-11-234-0/+38
| | | |
* | | | Merge topic 'test-add_subdirectory-in-function'Brad King2015-11-244-0/+33
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 010c5959 Tests: Add case for add_subdirectory inside a function
| * | | | Tests: Add case for add_subdirectory inside a functionBrad King2015-11-234-0/+33
| | |/ / | |/| |
* | | | Merge topic 'expand_cobertura_search'Brad King2015-11-231-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 32268810 CTest: Expand directories for Cobertura search
| * | | | CTest: Expand directories for Cobertura searchJoseph Snyder2015-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the Cobertura handler to look for an environment variable called "COBERTURADIR" which contains the directory where the coverage.xml file is found. If that variable doesn't exist, continue to use the default of the binary directory. Update the test to use an appropriate value in the environment variables.
* | | | | Merge topic 'ninja-symbolic-custom-command'Brad King2015-11-202-0/+26
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3477b26f Ninja: Always re-run custom commands that have symbolic dependencies 7d64a059 Ninja: Add 'restat' parameter to custom command generation method 866c75de Ninja: Refactor generation of 'restat' on custom commands
| * | | | | Ninja: Always re-run custom commands that have symbolic dependenciesBrad King2015-11-192-0/+26
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a custom command has a SYMBOLIC output (that is never actually created) then do not mark the custom command build statement as 'restat'. Otherwise other custom commands that depend on the symbolic output may not always re-run because after running the first custom command Ninja 'restat' will detect that the output timestamp did not change and skip its dependents. This was observed with the ExternalProject BUILD_ALWAYS option where Ninja would not re-run the 'install' step each time 'build' re-runs.
* | | | | Fix auto export symbols for Dlls containing /bigobj for 64bit builds.Bill Hoffman2015-11-191-0/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where 64 bit builds with /bigobj incorrectly determined that the object files were not 64 bit. This manifested itself with printf type functions showing up as undefined because the leading underscore was being removed and should not be removed.
* | | | Merge topic 'fix-ms-manifest-no-linker'Brad King2015-11-191-0/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | ca263d1d MSVC: Fix linking with /MANIFEST:NO option
| * | | MSVC: Fix linking with /MANIFEST:NO optionBrad King2015-11-181-0/+2
| | |/ | |/| | | | | | | | | | | | | Refactoring in commit v3.4.0-rc1~74^2~1 (MSVC: Rewrite manifest file handling with Makefile and Ninja, 2015-09-15) broke handling of this option. Fix it and add a test case.
| * | Merge branch 'fix-find_program-regression' into releaseBrad King2015-10-304-0/+14
| |\ \
* | | | Add test for OSX/iOS Framework directory structure (#15833)Gregor Jasny2015-11-139-0/+131
| | | |
* | | | Alias: Fix access at generate-time (#15832)Stephen Kelly2015-11-083-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit c389f8bb (cmLocalGenerator: Port Find method away from GetGeneratorTarget, 2015-10-25) ported the implementation of FindGeneratorTargetToUse away from the FindTargetToUse method, but neglected to handle alias targets. The latter method has a parameter to determine whether to include alias targets in the search, but as that is only needed at configure time, this generate-time equivalent does not need the condition.
* | | | Merge topic 'cpack-deb-config-file-source-field'Brad King2015-11-063-0/+109
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | e5b70ed0 CPackDEB: added config file optional Source field f2d98e2d CPackDEB: minor documentation and debug logging fixes
| * | | | CPackDEB: added config file optional Source fieldRaffi Enficiaud2015-11-043-0/+109
| | | | |
* | | | | CPackDeb: ctest tests for compression scheme leakRaffi Enficiaud2015-11-034-2/+72
|/ / / / | | | | | | | | | | | | | | | | | | | | Test that changing compression of debian package content does not affect DEBIAN/ files which must be gzipped
* | | | Merge topic 'fix-find_program-regression'Brad King2015-11-024-0/+14
|\ \ \ \ | | |/ / | |/| | | | | | | | | | 31e6571c find_program: Fix regression in finding an already-known path
| * | | find_program: Fix regression in finding an already-known pathBrad King2015-10-304-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in commit v3.4.0-rc1~124^2~1 (cmFindProgramCommand: Re-implement search using more flexible approach, 2015-09-01) did not preserve the behavior of looking for the given name with no search path at all. Fix this and add a test case covering finding an absolute path with no search directories.
* | | | FindPkgConfig: return actual error when a package is not found (#15810)Benjamin Chrétien2015-10-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases, CMake returned the following error: -- Checking for module 'foo' -- Package 'foo' not found When the actual error returned by pkg-config was: Package 'bar', required by 'foo', not found Now, the actual error is forwarded to the user. -- Checking for module 'foo' -- Package 'bar', required by 'foo', not found For the standard case (i.e. the package was indeed not found), the CMake error was: -- Checking for module 'foo' -- Package 'foo' not found But it now prints: -- Checking for module 'foo' -- No package 'foo' found The associated test was also updated. ${last} refers to the last CLI argument.
* | | | Tests: Disable parallel test execution while running ctest_testStephen Kelly2015-10-271-0/+1
| | | |
* | | | Tests: Don't overwrite RunCMake_TEST_FAILED variableStephen Kelly2015-10-271-5/+5
| | | |
* | | | Merge topic 'xcode-watch-and-tvos'Brad King2015-10-262-6/+56
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | a91eebeb Xcode: Recognise Watch and TV OS as embedded platforms
| * | | | Xcode: Recognise Watch and TV OS as embedded platformsGregor Jasny2015-10-232-6/+56
| | | | |
* | | | | Merge topic 'xcode-optimization-flags'Brad King2015-10-267-0/+63
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 601e6e1a Xcode: Use regular expression to extract all optimisation flags (#15794)
| * | | | | Xcode: Use regular expression to extract all optimisation flags (#15794)Gregor Jasny2015-10-237-0/+63
| |/ / / /
* | | | | Merge topic 'fix-test-RUN_SERIAL-failure-regression'Brad King2015-10-264-0/+27
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | e61973e1 CTest: Fix regression in handling of a RUN_SERIAL test that fails