summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* CheckStructHasMember: Add support for C++Daniele E. Domenichelli2013-10-081-0/+2
| | | | | | | | | | | | | | Previously if headers required to check if a struct has a member can be compiled with C++ compiler only, the check would fail because the C compiler fails. As a consequence, the result variable would be set to false, even if the struct has that particular member. Teach CHECK_STRUCT_HAS_MEMBER to accept a new optional argument LANGUAGE that allows one to explicitly set the compiler to use. The new signature is therefore: CHECK_STRUCT_HAS_MEMBER (<struct> <member> <header> <variable> [LANGUAGE <language>])
* Test find_path multiarch support (#13742)Brad King2012-11-261-0/+1
|
* FindQt: add to MajorVersionSelection testRolf Eike Beer2012-11-011-0/+1
|
* Tests: add MajorVersionSelection testsRolf Eike Beer2012-10-311-0/+18
| | | | | | For things where we may have 2 major versions of the same software installed in parallel (think of Qt and Python) make sure our version selection gets this right.
* SelectLibraryConfigurations: add testcaseRolf Eike Beer2012-10-211-0/+2
|
* Test variables CMAKE_(C|CXX|Fortran)_COMPILER(|_ID|_VERSION)Brad King2012-08-221-0/+6
| | | | | | Add tests CMakeOnly.CompilerId(C|CXX|Fortran) to check that the basic compiler tool path, vendor, and version variables have been set as expected.
* find_library: Add test covering lib->lib64 casesBrad King2012-07-201-0/+2
| | | | | | | Add a "CMakeOnly.find_library" test covering various cases involving lib->lib64 (non-)conversion. Comment out cases involving mixed path components "lib" and "lib64", such as lib/A/lib64 and lib64/A/lib, as these are known to be broken currently.
* Fix typo in error message, and remove redundent test.Bill Hoffman2012-03-011-2/+0
|
* Add ability to include a file in a project via a cache variable.Bill Hoffman2012-02-171-0/+8
| | | | | | If a variable exists called CMAKE_PROJECT_<projectName>_INCLUDE, the file pointed to by that variable will be included as the last step of the project command.
* Add CheckLanguage moduleBrad King2012-02-081-0/+2
| | | | | | Define a "check_language(<lang>)" macro to test whether <lang> can be enabled. Cache the result in CMAKE_<lang>_COMPILER. Add a test case covering expected results.
* Merge topic 'check_cxx_compiler_flag_cmakeonly'David Cole2012-02-011-0/+2
|\ | | | | | | | | 8de3b3d CheckCXXCompilerFlag test: make it a CMakeOnly test
| * CheckCXXCompilerFlag test: make it a CMakeOnly testRolf Eike Beer2012-01-301-0/+2
| |
* | Add test covering imported target scope rulesBrad King2012-01-251-0/+2
|/
* add a test that loops through most Find* modulesRolf Eike Beer2012-01-161-0/+2
| | | | | This allows easy spotting of modules that output crappy messages and the like.
* Merge topic 'link-shared-depend-cycle-issue-12647' into check_symbol_existsRolf Eike Beer2012-01-161-0/+3
|\
| * Tolerate cycles in shared library link interfaces (#12647)Brad King2012-01-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 183b9509 (Follow all dependencies of shared library private dependencies, 2011-12-14) we honor LINK_INTERFACE_LIBRARIES when following dependent shared libraries. The link interface properties may form a cycle if set incorrectly by a project. Furthermore, the property LINK_DEPENDENT_LIBRARIES may form a cycle if set incorrectly by hand (though CMake should never generate one). In either case, do not follow the cycle forever when following the dependent shared library closure. We only need to add dependency edges to the constraint graph once. Add "LinkInterfaceLoop" test to cover this case.
* | add a test for Check{,CXX}SymbolExistsRolf Eike Beer2012-01-161-0/+4
|/ | | | | Now that we think that CheckSymbolExists really works for all cases it is time to prove that. If this code fails too many other things will break.
* Add infrastructure for CMake-only testsBrad King2012-01-131-0/+9
Some tests only need to run CMake to configure and generate a build tree, but not actually perform the build. Add a new "Tests/CMakeOnly" directory dedicated for this purpose. Add a helper script to drive each test by creating a fresh build tree and running CMake on it. Add macro "add_CMakeOnly_test" to help create tests using the script.