summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix CMP0054 warningsBrad King2014-09-161-3/+3
| | | | | Hack the CMP0054 warning locally to be an error and run the test suite. Resolve CMP0054 in Tests/* code as appropriate for each case.
* Tests: Use -A option to pass generator platform selectionBrad King2014-09-151-1/+1
| | | | This is less verbose than defining CMAKE_GENERATOR_PLATFORM.
* Tests: Add generator platform supportBrad King2014-09-101-0/+1
| | | | | Propagate CMAKE_GENERATOR_PLATFORM through the test hierarchy so that all tests can build with the selected generator platform, if any.
* Tests: Teach CMakeOnly.AllFindModules to tolerate a system KDE4Brad King2014-03-191-0/+3
| | | | | | | | The FindKDE4 module (incorrectly) modifies CMAKE_MODULE_PATH on the caller's behalf. This causes KDE4-installed find modules to be used by the test instead of those in CMake. Teach the test to restore the CMAKE_MODULE_PATH to its original value after each find_package call. This ensures that the next find_package actually tests our module.
* Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variablesBrad King2014-03-031-2/+2
| | | | s/CMAKE_TEST_GENERATOR/CMAKE_GENERATOR/g
* Merge topic 'CheckStructHasMember_CXX'Brad King2013-10-084-0/+120
|\ | | | | | | | | 73d28d2 CheckStructHasMember: Add support for C++
| * CheckStructHasMember: Add support for C++Daniele E. Domenichelli2013-10-084-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>])
* | blacklist tests with their own test in Tests/Module from AllFindModules testRolf Eike Beer2013-08-091-2/+9
|/
* SelectLibraryConfigurations: Use -NOTFOUND instead of copying the varsDaniele E. Domenichelli2013-07-221-1/+1
| | | | | | | | | | If one of the libraries (_DEBUG or _RELEASE) is not set, the value is set to the value of the other one. FindQt4, from which the macro is extracted, sets the values to XXX_LIBRARY_{DEBUG,RELEASE}-NOTFOUND instead. In both cases the XXX_LIBRARY is correct, but using NOTFOUND makes it easier to understand which one is missing. Update Tests/CMakeOnly/SelectLibraryConfigurations with the new logic.
* Tests: Add generator toolset supportBrad King2013-02-071-0/+1
| | | | | Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
* Test find_path multiarch support (#13742)Brad King2012-11-264-0/+32
|
* FindQt: add to MajorVersionSelection testRolf Eike Beer2012-11-011-0/+1
|
* Merge topic 'test-major-version'David Cole2012-10-313-1/+69
|\ | | | | | | | | d1f3bfe Tests: add MajorVersionSelection tests
| * Tests: add MajorVersionSelection testsRolf Eike Beer2012-10-313-1/+69
| | | | | | | | | | | | 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.
* | Merge topic 'FindIcotool'David Cole2012-10-311-2/+3
|\ \ | | | | | | | | | | | | 86a184d Add module FindIcotool
| * | Add module FindIcotoolAleksey Avdeev2012-10-161-2/+3
| | | | | | | | | | | | | | | | | | This module looks for icotool. Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
* | | Merge topic 'find_library-NAMES_PER_DIR'David Cole2012-10-313-18/+31
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 66759ee find_library: Optionally consider all names in each directory 9cb68b1 find_library: Generalize helper macro in test case b64dd76 find_library: Simplify framework search logic 531c71b find_library: Refactor internal name iteration
| * | find_library: Optionally consider all names in each directoryBrad King2012-09-253-0/+13
| | | | | | | | | | | | | | | | | | | | | When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
| * | find_library: Generalize helper macro in test caseBrad King2012-09-251-18/+18
| |/ | | | | | | | | | | In Tests/CMakeOnly/find_library/CMakeLists.txt generalize the test_find_library macro and move the lib64 substitution logic to a new test_find_library_subst macro.
* | SelectLibraryConfigurations: fix for release and debug libs being the sameRolf Eike Beer2012-10-211-0/+4
| |
* | SelectLibraryConfigurations: add testcaseRolf Eike Beer2012-10-212-0/+62
|/
* Merge topic 'ide-compiler-id'David Cole2012-08-244-0/+56
|\ | | | | | | | | | | | | | | | | | | | | | | 403ead6 Document CMAKE_<LANG>_COMPILER_(ID|VERSION) values 8be51f6 Test variables CMAKE_(C|CXX|Fortran)_COMPILER(|_ID|_VERSION) ec22a9b Cleanly enable a language in multiple subdirectories 66cb335 VS: Detect the compiler id and tool location 89595d6 VS10: Define CMAKE_VS_PLATFORM_TOOLSET variable 965a69d Xcode: Detect the compiler id and tool location 9a9e1ee CMakeDetermineCompilerId: Prepare to detect IDE compiler id b8b5c83 Re-order C/C++/Fortran compiler determination logic
| * Test variables CMAKE_(C|CXX|Fortran)_COMPILER(|_ID|_VERSION)Brad King2012-08-224-0/+56
| | | | | | | | | | | | Add tests CMakeOnly.CompilerId(C|CXX|Fortran) to check that the basic compiler tool path, vendor, and version variables have been set as expected.
* | Add FindHg module to find MercurialBrad King2012-08-141-1/+1
|/ | | | Also teach the CMakeOnly.AllFindModules to verify Hg version detection.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-133-19/+19
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-132-44/+44
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419)Brad King2012-07-201-2/+2
| | | | | | | | When a search path contains multiple "lib/" instances we previously converted all or none. This fails for cases where only some of the multiple instances must be converted. Teach AddArchitecturePaths to generate all combinations that exist. Uncomment these cases in the CMakeOnly.find_library test now that they work.
* find_library: Add test covering lib->lib64 casesBrad King2012-07-2013-0/+63
| | | | | | | 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.
* Add FindLibLZMA ModuleMario Bensi2012-05-311-1/+1
|
* FindPkgConfig.cmake: fix documented output variable not set (#13125,#13132)Rolf Eike Beer2012-04-151-2/+1
| | | | | The real fix is from Yury G. Kudryashov while I added the surrounding cleanups. An additional hint to really get this fixed came from Rex Dieter.
* Tests: Relax restrictions on version variable contentsDavid Cole2012-03-201-3/+13
| | | | | | | | | | | | | | | | | Our only expectation of version number variables should be that they begin with a decimal digit for VERSION_LESS, VERSION_EQUAL and VERSION_GREATER comparison purposes. If people put extra blah blah after a version number like "1.2.3 (this is some super special extra information about our funky proprietary build of the official 1.2.3 release)" then we should be ok with that. So: now we have the following expectations for version number variable content for the purposes of the AllFindModules test: - it should start with a decimal digit (match "^[0-9]") - it should not be empty - it should not be VERSION_EQUAL 0 - it should not be NOT VERSION_GREATER 0
* AllFindModules test: do not require TCLSH versionRolf Eike Beer2012-03-021-1/+1
|
* Merge topic 'allfindmodules-versions'David Cole2012-03-021-18/+24
|\ | | | | | | | | 9271d2f AllFindModules test: once again expand version checking
| * AllFindModules test: once again expand version checkingRolf Eike Beer2012-03-011-18/+24
| |
* | Merge topic 'inject_code_via_variable'David Cole2012-03-024-1/+13
|\ \ | |/ |/| | | | | | | 2557a08 Fix typo in error message, and remove redundent test. 9090572 Add ability to include a file in a project via a cache variable.
| * 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-174-1/+15
| | | | | | | | | | | | 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.
* | Merge topic 'expect-more-versions'David Cole2012-02-211-2/+3
|\ \ | | | | | | | | | | | | 540db7e AllFindModules test: expect more modules to have a version number available
| * | AllFindModules test: expect more modules to have a version number availableRolf Eike Beer2012-02-181-2/+3
| |/ | | | | | | | | | | For all current build machines the modules FindPkgConfig, FindFreetype, and FindLibXslt return a version number. Enforce this to early catch when this is not always the case.
* | fix the same typos as found by Debian in other places, tooRolf Eike Beer2012-02-181-3/+3
|/
* Merge topic 'allfindmodules-no-force-gnuplot'David Cole2012-02-141-1/+1
|\ | | | | | | | | 2f306a9 AllFindModules test: do not enforce GNUPLOT version
| * AllFindModules test: do not enforce GNUPLOT versionRolf Eike Beer2012-02-131-1/+1
| | | | | | | | | | Ancient Gnuplot versions like 3.7.1 don't know about "--version". Disable this check so it doesn't break on machines with this version.
* | Add CheckLanguage moduleBrad King2012-02-082-0/+24
|/ | | | | | 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 'AllFindModules-test'David Cole2012-02-071-11/+40
|\ | | | | | | | | | | | | | | ed1b126 CMakeOnly.AllFindModules: require version for some modules 2dee929 CMakeOnly.AllFindModules: suppress two modules from testing 3c4b4ff CMakeOnly.AllFindModules: always check FindQt 9d72b25 CMakeOnly.AllFindModules: clean up the Qt3/Qt4 code
| * CMakeOnly.AllFindModules: require version for some modulesRolf Eike Beer2012-02-011-0/+22
| |
| * CMakeOnly.AllFindModules: suppress two modules from testingRolf Eike Beer2012-01-261-1/+6
| | | | | | | | | | FindPackageHandleStandardArgs and FindPackageMessage match the glob expression but are nothing that will usually be fed into find_package().
| * CMakeOnly.AllFindModules: always check FindQtRolf Eike Beer2012-01-261-2/+4
| |
| * CMakeOnly.AllFindModules: clean up the Qt3/Qt4 codeRolf Eike Beer2012-01-261-11/+11
| |
* | Merge topic 'check_cxx_compiler_flag_cmakeonly'David Cole2012-02-012-0/+60
|\ \ | | | | | | | | | | | | 8de3b3d CheckCXXCompilerFlag test: make it a CMakeOnly test
| * | CheckCXXCompilerFlag test: make it a CMakeOnly testRolf Eike Beer2012-01-302-0/+60
| |/