summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* CPackWIX: Allow Windows Installer property customizationNils Gladitz2014-03-011-0/+3
|
* Merge topic 'tests-RunCMake-no-unused'Brad King2014-02-281-0/+1
|\ | | | | | | | | 7cd239ed Tests/RunCMake: Tell cmake not to report unused command-line options
| * Tests/RunCMake: Tell cmake not to report unused command-line optionsBrad King2014-02-271-0/+1
| | | | | | | | | | | | | | | | | | On OS X we pass -DCMAKE_POLICY_DEFAULT_CMP0025=NEW to all tests. Once tests start using cmake_minimum_required(VERSION 3.0) then CMake will warn that CMAKE_POLICY_DEFAULT_CMP0025 is unused. These warnings are not part of the expected test output and can cause such tests to fail. Pass --no-warn-unused-cli to each test cmake invocation to tell it not to produce these warnings.
* | Add test for find_dependency macro.Stephen Kelly2014-02-269-0/+80
|/
* Merge topic 'msvc-compiler-pdb-files'Brad King2014-02-261-8/+22
|\ | | | | | | | | | | | | | | | | fba51b09 MSVC: Add properties to configure compiler PDB files (#14762) 3737860a cmTarget: Add per-config compilation info 718a9532 cmTarget: Refactor ComputePDBOutputDir interface aae5184c Help: Refactor PDB_NAME and PDB_OUTPUT_DIRECTORY docs b4aac0ca Makefile: Fix per-config linker PDB output directory
| * MSVC: Add properties to configure compiler PDB files (#14762)Brad King2014-02-261-8/+22
| | | | | | | | | | | | | | | | | | | | Since commit v2.8.12~437^2~2 (VS: Separate compiler and linker PDB files 2013-04-05) we no longer set /Fd with the PDB_NAME or PDB_OUTPUT_DIRECTORY properties. Those properties now exclusively handle linker PDB files. Since STATIC libraries do not link their compiler PDB file becomes more important. Add new target properties "COMPILE_PDB_NAME[_<CONFIG>]" and "COMPILE_PDB_OUTPUT_DIRECTORY[_<CONFIG>]" to specify the compiler PDB file location and pass the value to the MSVC /Fd option.
* | Merge topic 'target-SOURCES-refactor'Brad King2014-02-251-7/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | f9d5b1fd Handle Mac OSX source flags for individual files lazily. 64d39841 cmGeneratorTarget: Classify sources on demand, not up front. d3682d86 cmGeneratorTarget: Use a method to access the definition file. 5771f81d cmTarget: Add GetTransitiveTargetClosure method. a6dd4990 cmTarget: Create a temporary cmTarget in checkInterfacePropertyCompatibility b8b99cc1 cmTarget: Avoid computing languages when computing transitive targets. 01bca553 cmTarget: Move ComputeLinkInterface to the internal class. d93e1af2 cmTarget: Extract a ComputeLinkInterfaceLibraries method. 3bcb197c cmTarget: Re-arrange the ComputeLinkInterface method. 326d07d2 cmTarget: Extract a ComputeLinkImplementationLanguages method. 21e91350 cmTarget: Change GetTransitivePropertyLinkLibraries to output targets. f81eb49e cmTarget: Find source files on request. 84e5f5a0 cmTarget: Move SourceFileFlags to cmGeneratorTarget.
| * cmTarget: Add GetTransitiveTargetClosure method.Stephen Kelly2014-02-241-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace calls to GetLinkInformation with calls to a method to get only the target closure, not the link languages etc. The replaced calls are used while evaluating generator expressions only. This makes transitive generator expression evaluation independent from the languages of a target. In a follow-up topic, it will be possible to make the languages depend on generator expression evaluation, via evaluation of the SOURCES and INTERFACE_SOURCES target properties. Because the order of entries is not the same as the final link line, the order of debug output is different in the RunCMake.CompatibleInterface test, because the BOOL_PROP7 target property is evaluated first. Adjust the test to account for that new order.
* | Merge topic 'variable-expansion-tests'Brad King2014-02-2425-0/+130
|\ \ | | | | | | | | | | | | a9bdef2d tests: Add variable expansion tests
| * | tests: Add variable expansion testsBen Boeckel2014-02-2125-0/+130
| |/ | | | | | | | | | | | | | | | | There are some corner cases in variable expansion which would be nice to capture before going and rewriting the variable expansion code. The majority of these are related to configuring files and strings with '@' in them in conjunction with @ONLY being specified. Another is testing for '(' usage inside of ENV variable references based on whether it is quoted or not.
* | Merge topic 'ExternalProject-BUILD_ALWAYS'Brad King2014-02-243-0/+56
|\ \ | | | | | | | | | | | | 73e5c6ae ExternalProject: Add option to always run the build step
| * | ExternalProject: Add option to always run the build stepBrad King2014-02-213-0/+56
| |/ | | | | | | | | | | | | 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.
* | install: Support generator expressions in FILES and PROGRAMS modeBrad King2014-02-215-0/+35
|/ | | | | | | | Teach the install(FILES) and install(PROGRAMS) commands to evaluate generator expressions in the list of files. Extend the ExportImport test to cover installation cases involving generator expressions.
* Tests: Remove some trailing black lines.Stephen Kelly2014-02-171-2/+0
|
* add_custom_command: Disallow use of SOURCE signatures.Stephen Kelly2014-02-1214-0/+75
| | | | Add CMP0050 to control this behavior.
* Add policy CMP0049 to avoid variable expansion in source listsStephen Kelly2014-02-1213-0/+50
|
* Merge topic 'remove-Example'Brad King2014-02-101-12/+0
|\ | | | | | | | | 2e615d4b Remove the Example from the source.
| * Remove the Example from the source.Stephen Kelly2014-02-091-12/+0
| | | | | | | | | | It is not showing modern practice, and is obsolete as documentation after the rst documentation system and new content.
* | Merge topic 'fix-CMP0028-iface'Brad King2014-02-1010-0/+43
|\ \ | | | | | | | | | | | | b2915238 CMP0028: Trigger on libraries from INTERFACE of dependencies.
| * | CMP0028: Trigger on libraries from INTERFACE of dependencies.Stephen Kelly2014-02-0910-0/+43
| |/
* | Merge topic 'release-notes-prep'Brad King2014-02-103-5/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | 4b7f2f52 Help: Add hyperlink targets for argument types in cmake-language(7) 113df227 Remove ChangeLog.manual 79f55909 Remove ChangeLog.txt d25dbc90 Tests/BundleTest: Drop use of ChangeLog.txt
| * | Tests/BundleTest: Drop use of ChangeLog.txtBrad King2014-02-073-5/+5
| |/ | | | | | | | | The test just wants a source file from outside its tree. Use README.rst instead.
* | Merge topic 'wix_desktop'Brad King2014-02-101-0/+5
|\ \ | | | | | | | | | | | | b78d74de CPackWiX: Add support for CPACK_CREATE_DESKTOP_LINKS
| * | CPackWiX: Add support for CPACK_CREATE_DESKTOP_LINKSTimo Rothenpieler2014-02-081-0/+5
| |/
* | Merge topic 'interface-library-signatures'Brad King2014-02-106-2/+15
|\ \ | | | | | | | | | | | | | | | 6d85a6a6 add_library: Issue better diagnostic for INTERFACE GLOBAL signature. 770245e9 add_library: Test invalid GLOBAL INTERFACE signature.
| * | add_library: Issue better diagnostic for INTERFACE GLOBAL signature.Stephen Kelly2014-02-071-1/+1
| | |
| * | add_library: Test invalid GLOBAL INTERFACE signature.Stephen Kelly2014-02-075-1/+14
| |/ | | | | | | | | | | This has to be tested separately from the invalid_signature test because target sources are evaluate at a later time, and earlier errors in the invalid_signature test cause early exit.
* | Tests: Speed up RunCMake.CheckModules testBrad King2014-02-063-1/+5
|/ | | | | | Enable the C and CXX languages only in the test cases that really need them. In the failure cases we do not get far enough to really use the languages, so skip enabling them.
* QtAutogen: Only add source files to the target if AUTORCC is ON.Stephen Kelly2014-02-052-1/+12
| | | | | | | | | | | | The qtx_add_resources() macro adds the resource file to the output list to maintain file-level dependencies. Having the qrc file in a target sources is a precondition for AUTORCC to function. When processing the source files of a target, only add the generated qrc_<file>.cpp to the target sources if AUTORCC is ON. This avoids pre-porting conflict with the macro. Reported-by: Micha Hergarden
* Merge topic 'fix-Qt-autogen'Brad King2014-02-046-4/+21
|\ | | | | | | | | | | 6053ce22 QtAutogen: Make uic work even when the source is in a subdir. 1fc9ecfa FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found.
| * QtAutogen: Make uic work even when the source is in a subdir.Stephen Kelly2014-02-044-2/+2
| | | | | | | | | | | | Modify the includedUis to store the path to the file which includes the ui file. Reuse that path to generate the output file from the uic process.
| * FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found.Stephen Kelly2014-01-292-2/+19
| | | | | | | | | | | | | | | | | | Commit 321e348e (QtAutogen: Use Qt 4 IMPORTED targets to find executable locations., 2014-01-24) attempted to fix this problem, but only solved it for a particular ordering of find_package for Qt 4 and Qt 5. Add a test to ensure that it works with both orderings.
* | Merge topic 'fix-visibility-inlines-hidden'Brad King2014-02-035-0/+63
|\ \ | | | | | | | | | | | | efdcebdd VisibilityInlinesHidden: only apply -fvisibility-inlines-hidden to C++ sources
| * | VisibilityInlinesHidden: only apply -fvisibility-inlines-hidden to C++ sourcesNils Gladitz2014-02-015-0/+63
| | |
* | | Merge topic 'project-version-variables'Brad King2014-02-0337-0/+167
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 41d2f2c4 write_basic_package_version_file: use PROJECT_VERSION 7e142c5a project: Manage VERSION variables 16d040c9 project: Add optional LANGUAGES keyword 00007dcc Help: Format project command and variable documentation
| * | project: Manage VERSION variablesBrad King2014-01-2926-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the project() command to set variables {PROJECT,<PROJECT-NAME>}_VERSION{,_MAJOR,_MINOR,_PATCH,_TWEAK} holding the project version number and its components. Add project() command option "VERSION" to specify the version explicitly, and default to the empty string when it is not given. Since this clears variables when no VERSION is given, this may change behavior for existing projects that set the version variables themselves prior to calling project(). Add policy CMP0048 for compatibility. Suggested-by: Alex Neundorf <neundorf@kde.org>
| * | project: Add optional LANGUAGES keywordBrad King2014-01-2912-0/+29
| | | | | | | | | | | | | | | | | | | | | Teach the project() command to recognize an optional "LANGUAGES" keyword after the project name and prior to the list of languages. Do not allow multiple copies of the keyword. If the keyword is specified and no languages are listed, imply NONE.
* | | Merge topic 'fix-Qt-autogen'Brad King2014-01-298-10/+84
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f7ae1d8a QtAutogen: Short-circut some logic when moc is not available. 4b989d5f QtAutogen: Separate source file processing from AUTOMOC. c48d877d QtAutogen: Make some methods appropriately file-static. 394e86df QtAutogen: Fix autouic target options in the presence of a config. 964d7f2a QtAutogen: Remove unused variables. 0d934efd QtAutogen: Remove read of SKIP_AUTOUIC target property. 321e348e QtAutogen: Use Qt 4 IMPORTED targets to find executable locations. e96683b0 Qt4: Use IMPORTED executable names with custom commands. e6182f5d Qt4: Create IMPORTED executable targets for all Qt executables.
| * | QtAutogen: Short-circut some logic when moc is not available.Stephen Kelly2014-01-284-0/+71
| | | | | | | | | | | | | | | This is the case when AUTOMOC is false. This prevents creating rules to moc the files in the absense of moc.
| * | QtAutogen: Use Qt 4 IMPORTED targets to find executable locations.Stephen Kelly2014-01-284-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid using the moc from Qt 5 with Qt 4 based targets. Moc generates a version check to ensure that such generated code does not compile. The Qt4And5Automoc unit test should have been testing this, but it was not because the test was broken. In that unit test, moc was run on trivial files which have no significant content, and in particular no Q_OBJECT macro. Therefore moc was generating empty files which do not even contain the version check. Fix this by generating files for input to moc at cmake time.
* | | Merge topic 'ExternalProject-git-submodules'Brad King2014-01-291-0/+16
|\ \ \ | | | | | | | | | | | | | | | | 819015ef ExternalProject: Add option GIT_SUBMODULES
| * | | ExternalProject: Add option GIT_SUBMODULESGereon Kremer2014-01-281-0/+16
| | |/ | |/| | | | | | | | | | This option allows to filter the submodules that are checked out. Add a simple testcase for GIT_SUBMODULES option passing an empty list.
* | | Cygwin: Avoid legacy warnings in RunCMake.CMP004[1235] testsBrad King2014-01-284-4/+4
|/ / | | | | | | | | | | Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
* | Merge topic 'ctest-update-p4-unknown-revision'Brad King2014-01-271-1/+3
|\ \ | | | | | | | | | | | | 243cfc2f ctest_update: Handle P4 unknown revisions more robustly
| * | ctest_update: Handle P4 unknown revisions more robustlyPedro Navarro2014-01-221-1/+3
| | | | | | | | | | | | | | | | | | Mark unknown revisions as such and fail instead of reporting revision 0. Otherwise CTest reports massive file updates between revisions when the server timeouts while trying to fetch the current revision number.
* | | Merge topic 'robust-ep-download-verify'Brad King2014-01-273-0/+27
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | a432b93b file DOWNLOAD: Display the curl result status when a hash mismatch occurs. 1cb9ef81 file DOWNLOAD: Test non-zero return status. f73f0fb3 file DOWNLOAD: Add test for bad hash. b5e2265f ExternalProject: Reattempt download when verification fails.
| * | file DOWNLOAD: Test non-zero return status.Matt McCormick2014-01-161-0/+13
| | |
| * | file DOWNLOAD: Add test for bad hash.Matt McCormick2014-01-162-0/+14
| | |
* | | Allow projects to specify extra inputs to CMakeBrad King2014-01-215-0/+27
| | | | | | | | | | | | | | | | | | | | | Define a new 'CMAKE_CONFIGURE_DEPENDS' directory property that projects can use to specify input files to the CMake configuration process. Extend the RunCMake.Configure test to verify that the build system re-runs CMake when this input changes.
* | | Add test case to verify CMake does not re-run on first buildBrad King2014-01-213-0/+23
| | | | | | | | | | | | | | | | | | Extend the RunCMake.Configure with a case to verify that the CMake configuration process does not immediately re-run the first time that the generated build system is invoked.