summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'genex-validate-target-property-names'David Cole2012-10-232-0/+12
|\ | | | | | | | | | | | | e386992 GexEx: Validate Target names and property names differently. 95d590d GenEx: Create cmGeneratorTargets for imported targets. 0442104 GenEx: Add an accessor for imported targets in a makefile.
| * GexEx: Validate Target names and property names differently.Stephen Kelly2012-10-222-0/+12
| | | | | | | | | | In the unit test, use the same IMPORTED_LOCATION trick that the ExportImport test uses.
* | 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 'generator-expression-bug-fixes'David Cole2012-10-1712-0/+91
|\ | | | | | | | | | | | | | | | | | | | | 79edd00 GenEx: Fix reporting about not-found include directories and libraries. f7ef32b GenEx: Replace some failing tests with Borland and NMake makefiles. fd59b10 GenEx: Add some more asserts to verify code-sanity. 6dd2b36 GenEx: Break if there are no more commas in the container e7230c7 GenEx: Fix termination bugs in generator expression parser. 145a4af GenEx: Test the use of generator expressions to generate lists. e2d141d GenEx: Parse colon after arguments separator colon specially.
| * GenEx: Fix reporting about not-found include directories and libraries.Stephen Kelly2012-10-176-0/+23
| | | | | | | | | | | | This fixes a regression introduced in commit 290e92ad (Move GetIncludeDirectories to cmGeneratorTarget, 2012-09-16) which loops over cmGeneratorTargets before they get created, so the container is empty.
| * GenEx: Replace some failing tests with Borland and NMake makefiles.Stephen Kelly2012-10-172-6/+4
| | | | | | | | | | The '<<' is a special sequence on those platforms, so it can't appear in the test.
| * GenEx: Fix termination bugs in generator expression parser.Stephen Kelly2012-10-172-0/+44
| | | | | | | | | | | | | | Content which is incomplete as a generator expression could cause segfaults by advancing an iterator beyond end() and dereferencing it. Such incomplete generator expressions should be treated as plain text instead.
| * GenEx: Test the use of generator expressions to generate lists.Stephen Kelly2012-10-174-0/+16
| | | | | | | | | | | | We can't test this in the GeneratorExpression unit test because the ';' chars are processed specically by the CMake function argument parser.
| * GenEx: Parse colon after arguments separator colon specially.Stephen Kelly2012-10-172-0/+10
| | | | | | | | | | | | The rationale is similar to that in commit b3d8f5da (GenEx: Parse comma after colon tokens specially, 2012-10-04), in that colon tokens should not be parsed as identifier-argument delimiters after the first colon.
* | Merge topic 'test-ctest-memcheck'David Cole2012-10-1732-0/+435
|\ \ | |/ |/| | | | | | | | | | | | | | | 995a35f CTest: add a check with a quoted memory checker de8bffc CTest: add a test for CTEST_CUSTOM_MEMCHECK_IGNORE d26c9b6 CTest: improve memory checker type detection fcae1da CTest: add tests that simulate memcheck runs 6187876 CTest: fix pre and post test commands with spaces 95bc8aa CTest: fix usage of memory checker with spaces in path
| * CTest: add a check with a quoted memory checkerRolf Eike Beer2012-10-044-4/+39
| |
| * CTest: add a test for CTEST_CUSTOM_MEMCHECK_IGNORERolf Eike Beer2012-10-044-1/+45
| |
| * CTest: add tests that simulate memcheck runsRolf Eike Beer2012-10-0426-0/+356
| |
* | GenEx: Add tests for "0" and "1" expressions with literal commas.Stephen Kelly2012-10-092-0/+4
| |
* | GenEx: Add test for $<BOOL:> with empty parameter.Stephen Kelly2012-10-092-0/+2
| |
* | GenEx: Validate target and property names.Stephen Kelly2012-10-0925-0/+125
| | | | | | | | They must be non-empty, and match a restrictive regexp.
* | GenEx: Parse comma after colon tokens speciallyStephen Kelly2012-10-097-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the comma is treated as plain text by ParseContent. $<STREQUAL:,> should be valid and true. $<STREQUAL:,something> should be valid and false. $<STREQUAL:,,> should be non-valid as it is 3 parameters. $<STREQUAL:something,,> should be non-valid as it is 3 parameters. Additionally, this allows reporting the correct error for other expressions. For example $<TARGET_PROPERTY:,> should be invalid because it has an empty target and empty property. It shouldn't attempt to read the property ',' on the 'implicit this' target.
* | GenEx: Report actual target name not found, not "0" each time.Stephen Kelly2012-10-094-0/+15
| |
* | Merge topic 'export-sets'Brad King2012-10-014-0/+21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80112da Merge topic 'AutomocUseTargetProperties' into export-sets 955b966 exports: add a test for exporting dependent targets 6f50a04 exports: define a CMAKE_FIND_PACKAGE_NAME var set by find_package() 0cfd055 exports: move the handling of missing targets into subclasses 190f2c8 exports: fix build with MSVC6 8b5f448 exports: first try at error handling if a target is missing 87f4c01 exports: accept a missing target if it is exported exactly once 999061a exports: store pointers to all installations of each export set 64b3a6c exports: cmGlobalGenerator::ExportSets destructor will clear it 81cdab5 exports: Hold an ExportSet pointer in cm*Export*Generator 5c898fb exports: Add cmExportSetMap class d13ec1a exports: Create class cmExportSet 4e2347c exports: Rename cmGlobalGenerator::AddTargetToExport{s,} e846e70 exports: Remove cmTargetExport constructor 81c66c8 exports: Move cmTargetExport to a dedicated header file ae4ab62 find_package: add support for a <package>_NOT_FOUND_MESSAGE variable ...
| * \ Merge topic 'AutomocUseTargetProperties' into export-setsAlex Neundorf2012-09-3010-8/+144
| |\ \ | | | | | | | | | | | | | | | | Conflicts: Source/cmGlobalGenerator.h
| * | | exports: add a test for exporting dependent targetsAlex Neundorf2012-09-304-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The test exports two libraries into two separate exports, and then include()s the generated export files. This must not fail. Alex
* | | | Merge topic 'vs-pdb-output'Brad King2012-10-019-0/+102
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 2ccca05 Run PDBDirectoryAndName test on MSVC and Intel efc83b3 Document that PDB_(NAME|OUTPUT_DIRECTORY) are ignored for VS 6 b294457 Verify that PDB_(NAME|OUTPUT_DIRECTORY) are honored in test 3f60dbf Add PDB_OUTPUT_DIRECTORY and PDB_NAME target properties (#10830)
| * | | Run PDBDirectoryAndName test on MSVC and IntelBrad King2012-09-292-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move it out of the condition that also accepts MinGW/MSYS. Teach the test to allow the Intel for Windows compiler but do not verify the results because the compiler does not seem to write PDB output in all cases.
| * | | Document that PDB_(NAME|OUTPUT_DIRECTORY) are ignored for VS 6Brad King2012-09-251-0/+5
| | | |
| * | | Verify that PDB_(NAME|OUTPUT_DIRECTORY) are honored in testBrad King2012-09-252-0/+36
| | | | | | | | | | | | | | | | | | | | Teach the PDBDirectoryAndName test to check that the .pdb files appear where expected.
| * | | Add PDB_OUTPUT_DIRECTORY and PDB_NAME target properties (#10830)Yuchen Deng2012-09-258-0/+56
| | |/ | |/| | | | | | | | | | | | | | | | This enables changing the name and output folder of the debug symbol files produced by MS compilers. Inspired-by: Thomas Bernard <thomas.bernard@ipetronik.com>
* | | Merge topic 'generator-expression-target-properties'Brad King2012-09-2828-0/+175
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 083de7e Process generator expressions in the COMPILE_DEFINITIONS target property. 08cb4fa Process generator expressions in the INCLUDE_DIRECTORIES property. 0ef091d Early return if there is no target. eb250cd Add a self-reference check for target properties. 7e80747 Add API to check that dependent target properties form a DAG. 239ac84 Add a generator expression for target properties. e028381 Extend the generator expression language with more logic. b8e61d6 Refactor GetCompileDefinitions a bit. 2c2b25b Return a std::string from GetCompileDefinitions. b7e48e0 Add an AppendDefines std::string overload. 9a16087 Convert paths in INCLUDE_DIRECTORIES property to Unix slashes. 4557c8d Don't prepend a path before generator expressions in include_directories. c6abc41 Add include guard for cmGeneratorExpression. 0ff4e3f Port remaining code to GetCompileDefinitions(). f178d53 Fix indentation in the code blocks generator.
| * | | Process generator expressions in the COMPILE_DEFINITIONS target property.Stephen Kelly2012-09-289-0/+51
| | | |
| * | | Process generator expressions in the INCLUDE_DIRECTORIES property.Stephen Kelly2012-09-2818-0/+90
| | | | | | | | | | | | | | | | | | | | This use of generator expressions, like all others to come which operate on target properties, must initalize the dag checker.
| * | | Extend the generator expression language with more logic.Stephen Kelly2012-09-282-0/+34
| |/ / | | | | | | | | | | | | | | | | | | Generator expressions for comparing strings, evaluating strings as booleans, and for creating literal right-angle-brackets and commas are added. Those may be needed in some cases where they appear in literals.
* | | Merge topic 'osx-sysroot-cleanup'David Cole2012-09-251-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df92864 OS X: Ignore MACOSX_DEPLOYMENT_TARGET during Xcode compiler id e7e613e OS X: Teach deployment target sanity check about SDK names 43b7479 OS X: Further improve default CMAKE_OSX_SYSROOT selection 2690738 OS X: If CMAKE_OSX_SYSROOT is already set do not compute default 7995722 OS X: Simplify selection of CMAKE_OSX_ARCHITECTURES 1786b12 OS X: Allow CMAKE_OSX_SYSROOT to be a logical SDK name 242f673 Tests/Assembler: Use CMAKE_OSX_SYSROOT to generate .s file a1c032b bootstrap: Suppress CMAKE_OSX_SYSROOT if CFLAGS have -isysroot 230ea21 OS X: Improve default CMAKE_OSX_SYSROOT selection a0a0877 OS X: Always generate -isysroot if any SDK is in use 33a60e6 Xcode: Remove unused code reading CMAKE_OSX_SYSROOT_DEFAULT
| * | | Tests/Assembler: Use CMAKE_OSX_SYSROOT to generate .s fileBrad King2012-09-211-0/+3
| |/ / | | | | | | | | | | | | | | | On OS X if the user-provided flags do not include -isysroot and CMAKE_OSX_SYSROOT is defined then add the proper -isysroot flag to the C compiler invocation we use to generate the .s file.
* | | file(DOWNLOAD): Change EXPECTED_HASH to take ALGO=valueBrad King2012-09-191-6/+6
|/ / | | | | | | | | | | Make the EXPECTED_HASH option take only a single value instead of two to avoid handling sub-keyword arguments. This is also consistent with URL_HASH in ExternalProject.
* | Merge topic 'generator-expression-refactor'Brad King2012-09-198-7/+136
|\ \ | | | | | | | | | | | | | | | 91011bd cmGeneratorExpression: Port users to two-stage processing f1eacf0 cmGeneratorExpression: Re-write for multi-stage evaluation
| * | cmGeneratorExpression: Re-write for multi-stage evaluationStephen Kelly2012-09-188-7/+136
| | | | | | | | | | | | | | | | | | | | | | | | The expressions may be parsed and then cached and evaluated multiple times. They are evaluated lazily so that literals such as ',' can be treated as universal parameter separators, and can be processed from results without appearing literally, and without interfering with the parsing/evaluation of the entire expression.
* | | Merge topic 'ExternalProject-check-hashes'David Cole2012-09-181-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | c266461 Add SSL_VERIFYPEER and CAINFO file options to ExternalProject_Add. beb8a83 ExternalProject: Generalize URL_MD5 option to URL_HASH
| * | | ExternalProject: Generalize URL_MD5 option to URL_HASHBrad King2012-09-111-1/+1
| | |/ | |/| | | | | | | Add support for SHA algorithms.
* | | Merge topic 'if-version-depth'David Cole2012-09-181-0/+7
|\ \ \ | |/ / |/| | | | | | | | dfa0ebd if: Compare up to 8 components in VERSION tests
| * | if: Compare up to 8 components in VERSION testsBrad King2012-09-111-0/+7
| |/ | | | | | | | | | | | | | | | | | | Extend the number of components tested by if(... VERSION_LESS ...) if(... VERSION_EQUAL ...) if(... VERSION_GREATER ...) from 4 to 8. The latter is a more extreme maximum.
* | file(DOWNLOAD): Generalize EXPECTED_MD5 to EXPECTED_HASHBill Hoffman2012-09-111-0/+53
|/ | | | Add support for SHA algorithms.
* Merge topic 'msvc-compiler-info'Brad King2012-08-311-0/+11
|\ | | | | | | | | 16fa7b7 VS: Fix MSVC_IDE definition recently broken by refactoring
| * VS: Fix MSVC_IDE definition recently broken by refactoringBrad King2012-08-301-0/+11
| | | | | | | | | | | | In commit 485a940e (VS: Simplify MSVC version reporting, 2012-08-23) we accidentally flipped the 0/1 values of MSVC_IDE. Flip them back and teach the CheckCompilerRelatedVariables test to check the variable.
| * Merge branch 'cmake-platform-info-version' into msvc-compiler-infoBrad King2012-08-301-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: Modules/CMakeTestCCompiler.cmake Modules/CMakeTestCXXCompiler.cmake Modules/Platform/Windows-cl.cmake
* | \ Merge topic 'fix-Qt-casing'Brad King2012-08-301-4/+4
|\ \ \ | | | | | | | | | | | | | | | | 3252149 Fix casing of 'Qt' in docs, comments and user-visible strings.
| * | | Fix casing of 'Qt' in docs, comments and user-visible strings.Stephen Kelly2012-08-281-4/+4
| | | | | | | | | | | | | | | | | | | | QT (cue-tea) is Apple QuickTime. Qt (cute) is the C++ framework.
* | | | Merge topic 'cmake-platform-info-version'Brad King2012-08-301-1/+1
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | e5fee8a Store ABI detection results in compiler information files 3df81b4 Move CMAKE_<LANG>_COMPILER_WORKS to compiler information files 7195aca Make platform information files specific to the CMake version
| * | Make platform information files specific to the CMake versionBrad King2012-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the top of a build tree we configure inside the CMakeFiles directory files such as "CMakeSystem.cmake" and "CMake<lang>Compiler.cmake" to save information detected about the system and compilers in use. The method of detection and the exact results store varies across CMake versions as things improve. This leads to problems when loading files configured by a different version of CMake. Previously we ignored such existing files only if the major.minor part of the CMake version component changed, and depended on the CMakeCache.txt to tell us the last version of CMake that wrote the files. This led to problems if the user deletes the CMakeCache.txt or we add required information to the files in a patch-level release of CMake (still a "feature point" release by modern CMake versioning convention). Ensure that we always have version-consistent platform information files by storing them in a subdirectory named with the CMake version. Every version of CMake will do its own system and compiler identification checks even when a build tree has already been configured by another version of CMake. Stored results will not clobber those from other versions of CMake which may be run again on the same tree in the future. Loaded results will match what the system and language modules expect. Rename the undocumented variable CMAKE_PLATFORM_ROOT_BIN to CMAKE_PLATFORM_INFO_DIR to clarify its purpose. The new variable points at the version-specific directory while the old variable did not.
* | | 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.