summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* variable_watch: Add test for MODIFIED_ACCESS reportBrad King2013-06-035-0/+13
| | | | Add a RunCMake.variable_watch watch test to cover the basic use case.
* Merge topic 'useless-MATCHES'Brad King2013-06-034-18/+12
|\ | | | | | | | | cd4451d replace string(... MATCHES "^const$) with string(... STREQUAL "const")
| * replace string(... MATCHES "^const$) with string(... STREQUAL "const")Rolf Eike Beer2013-06-024-18/+12
| |
* | Merge topic 'target-COMPILE_OPTIONS'Brad King2013-06-037-0/+105
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24466f2 Add target_compile_options command. 80ca9c4 Add COMPILE_OPTIONS target property. 7cb2308 cmTarget: Rename LinkInterfaceIncludeDirectoriesEntries 47f80d9 cmTarget: Rename struct to be more re-usable. 1319a14 Add <LANG>_COMPILER_ID generator expressions. 3549676 Add cmLocalGenerator::GetCompileOptions. f3ad863 VS6: Rename some variables to correspond to config values.
| * | Add target_compile_options command.Stephen Kelly2013-06-024-0/+72
| | | | | | | | | | | | This command populates the COMPILE_OPTIONS target property.
| * | Add COMPILE_OPTIONS target property.Stephen Kelly2013-06-024-0/+33
| |/ | | | | | | | | | | This method reads generator expressions from the COMPILE_OPTIONS target property, as well as INTERFACE_COMPILE_OPTIONS from linked dependents.
* | Merge topic 'refactor-try_compile-argument-processing'Brad King2013-06-0335-0/+88
|\ \ | | | | | | | | | | | | | | | d06db7e try_compile: Refactor argument processing b680824 try_compile: Add test for bad call error cases
| * | try_compile: Refactor argument processingBrad King2013-05-3111-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Process all arguments in a single loop using a simple state machine. While at it, fix some error message typos. Also allow LINK_LIBRARIES with no actual libraries to disable use of the -DLINK_LIBRARIES=... from the CMAKE_FLAGS. This was already possible in the old logic if LINK_LIBRARIES was immediately followed by another keyword argument instead of the end of the argument list, so allow it in general. Update the RunCMake.try_compile test cases accordingly.
| * | try_compile: Add test for bad call error casesBrad King2013-05-3132-0/+80
| |/ | | | | | | | | Add a RunCMake.try_compile test to cover cases of bad invocation of the try_compile command.
* | Merge topic 'qt4-qt5-CMAKE_AUTOMOC'Brad King2013-06-035-0/+53
|\ \ | | | | | | | | | | | | | | | fa55751 QtAutomoc: Get the Qt version through the target link interface f776316 Use the qt5::moc imported target instead of a variable.
| * | QtAutomoc: Get the Qt version through the target link interfaceStephen Kelly2013-05-275-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Qt 5.1, Qt5::Core has a INTERFACE_QT_MAJOR_VERSION property of '5', and since CMake 2.8.11, Qt4::QtCore has an INTERFACE_QT_MAJOR_VERSION of '4'. This was introduced in commit 4aa10cd6 (FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore, 2013-03-16), to produce an error if Qt 4 and Qt 5 are erroneously used by the same target. This can also be used however to determine the Qt major version, and therefore the particular moc executable to use during automoc steps. This means that targets in a single buildsystem can use a selection of Qt 4 and Qt 5, and still take advantage of the CMAKE_AUTOMOC feature without conflicting.
* | | Merge topic 'rpath-on-mac'Brad King2013-06-0312-0/+249
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc1d025 OS X: Add test for rpaths on Mac. 8576b3f OS X: Add support for @rpath in export files. 00d71bd Xcode: Add rpath support in Xcode generator. 94e7fef OS X: Add RPATH support for Mac.
| * | | OS X: Add test for rpaths on Mac.Clinton Stimpson2013-06-0312-0/+249
| | | | | | | | | | | | | | | | This also tests rpaths through export/import.
* | | | Merge topic 'framework-refactor'Brad King2013-06-031-2/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | 373faae Refactor how bundles and frameworks are supported.
| * | Refactor how bundles and frameworks are supported.Clinton Stimpson2013-05-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make handling of directory separators consistent between non-bundle and bundle code. Remove xcode specific flag from cmTarget when getting install_name. Add (more) consistent convenience functions in cmTarget to get directories inside of bundles and frameworks to add files to. This refactor also fixes bug #12263 where frameworks had the wrong install name when SKIP_BUILD_RPATH. Also make install_name for frameworks consistent between Makefile and Xcode generator.
* | | Merge topic 'test-INCLUDE_DIRECTORIES-genex-read'Brad King2013-05-313-0/+33
|\ \ \ | | | | | | | | | | | | | | | | 07f9e15 GenexEval: Test evaluation of INCLUDE_DIRECTORIES target property.
| * | | GenexEval: Test evaluation of INCLUDE_DIRECTORIES target property.Stephen Kelly2013-05-303-0/+33
| |/ /
* | | Merge topic 'fix-FileIsDirectory-SEGV'Brad King2013-05-307-0/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7378792 if: Add test for IS_DIRECTORY 4ab10e0 Merge branch 'master' into fix-FileIsDirectory-SEGV 045d6ae KWSys: Fix SystemTools::FileIsDirectory with long paths (#14176)
| * | | if: Add test for IS_DIRECTORYBrad King2013-05-287-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Add a RunCMake.if test to cover if() command behavior. Start with a test for IS_DIRECTORY cases with an existing directory and a long path, both with a trailing slash.
* | | | Merge topic 'ExternalData-no-re-stage'Brad King2013-05-283-0/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | c35961b ExternalData: Do not re-stage staged object files
| * | | | ExternalData: Do not re-stage staged object filesBrad King2013-05-243-0/+43
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ExternalData_LINK_CONTENT option tells ExternalData to convert real data files it finds into content links and to "stage" the original content in a ".ExternalData_<algo>_<hash>" file. However, after a data object has been staged it is possible that a user-provided pattern in the "REGEX:" option will later match the staged object file. We must not process staged object files even when a user pattern matches them. Fix the implementation to not match a staged object file as a normal data file for conversion. Extend the RunCMake.ExternalData test to cover this case.
* | | | Merge topic 'silence-vs6-warnings'Brad King2013-05-284-4/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 015309f Tests/CompileDefinitions: Avoid spaces in defines on VS 6
| * | | | Tests/CompileDefinitions: Avoid spaces in defines on VS 6Stephen Kelly2013-05-244-4/+18
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The VS 6 IDE does not like spaces in definition values so CMake drops them and warns. The Tests/CompileDefinitions test C code that looks for the dropped definitions already knows to skip them, but CMake still warns. Silence the warnings by avoiding such values in the first place on VS 6.
* | | | Merge topic 'genex-generate-file'Brad King2013-05-2820-0/+71
|\ \ \ \ | |/ / / |/| | | | | | | | | | | b983a58 file: Add GENERATE command to produce files at generate time
| * | | file: Add GENERATE command to produce files at generate timeStephen Kelly2013-05-2420-0/+71
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea is to write to a temp file which contains generator expressions, and at generate time, evaluate the generator expressions, and write the result to a file. Because executables on Windows are limited in the length of command line it is possible to use, it is common to write command line arguments to a file instead and specify the file as a source of arguments. This new FILE(GENERATE) subcommand allows the use of generator expressions to create such files so that they can be used with add_custom_command for example.
* | | Merge topic 'geh-cleanup-identifiers'Brad King2013-05-245-0/+44
|\ \ \ | | | | | | | | | | | | | | | | 7e24997 GenerateExportHeader: Generate only C identifiers as defines
| * | | GenerateExportHeader: Generate only C identifiers as definesStephen Kelly2013-05-245-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variables in this module are used to configure a header file with defines whose name depends on the name of the target. As valid names of targets may be invalid for use as defines, convert the names of the defines used to C identifiers first. This is already done in C++ code for the DEFINE_SYMBOL property. This is not as simple as ensuring that the BASE_NAME is a C identifier, because most of the define names are configurable, and because use of a BASE_NAME which is not a C identifier, such as 4square can become a C identifier by specifying a prefix in the generate_export_header macro.
* | | | Merge topic 'geh-add-missing-test'Brad King2013-05-241-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 74f24b2 Tests/Module/GenerateExportHeader: Test exported free-function
| * | | | Tests/Module/GenerateExportHeader: Test exported free-functionStephen Kelly2013-05-241-0/+1
| |/ / /
* | | | Merge topic 'geh-output-tweak'Brad King2013-05-241-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | bb412d0 GenerateExportHeader: Add newlines to separate the compiler output.
| * | | | GenerateExportHeader: Add newlines to separate the compiler output.Stephen Kelly2013-05-231-2/+2
| |/ / / | | | | | | | | | | | | Make the error logs more readable.
* | | | Merge topic 'language-generator-expressions'Brad King2013-05-248-0/+116
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 3241014 Add $<LINK_LANGUAGE> generator expression
| * | | | Add $<LINK_LANGUAGE> generator expressionStephen Kelly2013-05-248-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They can't be used when evaluating link libraries, but they can be used for include directories and compile definitions. Later they can be used for compile options.
* | | | | Merge topic 'fix-include_directories-whitespace-handling'Brad King2013-05-241-1/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | a97240b Tests/IncludeDirectories: Avoid shared library with no symbols
| * | | | | Tests/IncludeDirectories: Avoid shared library with no symbolsBrad King2013-05-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parent commit added a empty_entry_test shared library to the IncludeDirectories test. Some toolchains fail to create a shared library with no user-defined symbols, so provide a dummy symbol.
* | | | | | Merge topic 'Memchecker-Mac-fix'Brad King2013-05-241-1/+1
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | 0aed09f Tests: ignore GuardMalloc messages on all Apple build, not just XCode ones
| * | | | | Tests: ignore GuardMalloc messages on all Apple build, not just XCode onesRolf Eike Beer2013-05-231-1/+1
| | | | | |
* | | | | | Merge topic 'join-genex'Brad King2013-05-224-3/+29
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a7ba452 Add the JOIN generator expression. 96ec314 Make it possible for any genex to have arbitrary content at the end. bd638ee Rename the method determining if a genex accepts arbitrary content. dc742fe Extract the ProcessArbitraryContent method.
| * | | | | Add the JOIN generator expression.Stephen Kelly2013-05-164-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This generator expression joins a list with a separator. The separator may contain arbitrary content, such as commas, which is ordinarily a delimiter in the generator expression syntax.
* | | | | | Merge topic 'Memchecker-AIX-fix'Brad King2013-05-221-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1a2a6ba Tests: fix build of dummy memtester on AIX
| * | | | | | Tests: fix build of dummy memtester on AIXRolf Eike Beer2013-05-211-1/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both <string> and <cmSystemTools.h> include <stdio.h> one or the other way. It looks like the CMake header adds a define that will cause another part of the system header to be used, resulting in conflicting definitions.
* | | | | | Merge topic 'string-MAKE_C_IDENTIFIER-subcommand'Brad King2013-05-221-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0ab50ae string: Add MAKE_C_IDENTIFIER subcommand
| * | | | | | string: Add MAKE_C_IDENTIFIER subcommandStephen Kelly2013-05-211-0/+6
| | |_|_|/ / | |/| | | |
* | | | | | Merge topic 'add-EXPORT_NAME-property'Brad King2013-05-229-7/+65
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | b5d6f5d Add EXPORT_NAME property.
| * | | | | Add EXPORT_NAME property.Stephen Kelly2013-05-189-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for example, the buildsystem to use names like 'boost_any' instead of the overly generic 'any', and still be able to generate IMPORTED targets called 'boost::any'.
* | | | | | Merge topic 'fix-include_directories-whitespace-handling'Brad King2013-05-212-0/+12
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | 2f84dfe include_directories: Fix handling of empty or space-only entries
| * | | | | include_directories: Fix handling of empty or space-only entriesStephen Kelly2013-05-212-0/+12
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression introduced in commit 0d46e9a0 (Store includes from the same include_directories call together., 2013-01-20). Reported at http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/46695/focus=7847
* | | | | Merge topic 'fix-genex-comma-parse'Brad King2013-05-212-0/+20
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | 05bf972 Fix handling of commas in arbitrary content in genexes.
| * | | | Fix handling of commas in arbitrary content in genexes.Stephen Kelly2013-05-162-0/+20
| |/ / / | | | | | | | | | | | | | | | | As the comma is the parameter separator, it needs to be re-added when evaluating to reconstruct arbitrary content.
* | | | Merge topic 'implicit-link-sanitize-regex'Brad King2013-05-211-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ffda082 Sanitize linker name to parse implicit link line (#14154)