summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'WriteCompilerDetectionHeader-module'Brad King2014-05-1436-0/+274
|\ | | | | | | | | 62a4a67d Add the WriteCompilerDetectionHeader module.
| * Add the WriteCompilerDetectionHeader module.Stephen Kelly2014-05-1436-0/+274
| | | | | | | | | | | | | | | | Provide a function to write a portable header to detect compiler features. Generate a preprocessor #error for unknown compilers and compiler versions whose features are not yet recorded. This error condition might be relaxed in the future, but for now it is useful for verification of expectations.
* | Merge topic 'package-disable-registry'Brad King2014-05-122-3/+40
|\ \ | | | | | | | | | | | | | | | | | | | | | ba387cb8 Help: Add notes for topic 'package-disable-registry' be8ae960 Allow the Package Registry to be disabled (#14849) d09fda5d Tests: Improve FindPackageTest for in-source builds ac24a1c0 Tests: Improve FindPackageTest exported package version
| * | Allow the Package Registry to be disabled (#14849)Daniele E. Domenichelli2014-05-121-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a project is packaged for redistribution the local package registries should not be updated or consulted. They are for developers. Add variables to disable use of package registries globally: * CMAKE_EXPORT_NO_PACKAGE_REGISTRY that disables the export(PACKAGE) command * CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY that disables the User Package Registry in all the find_package calls. * CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY that disables the System Package Registry in all the find_package calls. Update documentation and unit tests.
| * | Tests: Improve FindPackageTest for in-source buildsBrad King2014-05-121-1/+1
| | | | | | | | | | | | | | | Use a different directory name for the Exporter build tree so that it is out-of-source even when the main test is in-source.
| * | Tests: Improve FindPackageTest exported package versionBrad King2014-05-122-2/+9
| | | | | | | | | | | | | | | Add a random version component so that the test is unlikely to conflict with other tests of the same CMake version on the same machine.
* | | Merge topic 'minor-cleanups'Brad King2014-05-124-13/+43
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bc9a8bba Makefile: Undef FEATURE_STRING iteration define after use. eb638c75 Tests: Make CompileFeatures feature list lang-specific. e2f09aff CMakeConfigurableFile: Remove excess newline. 5109b042 Features: Fix GNU 4.8.1 version test. 6a9fdbeb Test: Parameterize the language in the CompileFeature test. f5bf9d43 Tests: Make CompileFeature tests use highest standard known.
| * | | Tests: Make CompileFeatures feature list lang-specific.Stephen Kelly2014-05-102-4/+4
| | | |
| * | | Test: Parameterize the language in the CompileFeature test.Stephen Kelly2014-05-091-19/+23
| | | |
| * | | Tests: Make CompileFeature tests use highest standard known.Stephen Kelly2014-05-092-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the use of check_cxx_source_compiles which is now just getting in the way. Blacklist the cxx_alignof feature in the test with GNU 4.7. The test file compiles, but it is documented as available first in GNU 4.8.
* | | | cmTarget: Evaluate CMP0026 and CMP0051 in calling contextBrad King2014-05-096-1/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These policies should be checked at the call site that tries to access the LOCATION or SOURCES property, not the directory scope containing the target. Thread the caller context through cmTarget::GetProperty to use for checking the policy setting and emitting a diagnostic with proper backtrace. Extend the RunCMake.CMP0026 and RunCMake.CMP0051 tests with cross-directory cases.
* | | EVIS: Add tests for syntax corner cases and CMP0053Ben Boeckel2014-05-08108-14/+692
| |/ |/| | | | | | | | | | | | | | | | | Include tests for: - @ expansion during normal execution - various characters in variable names for comparison between the new and the old parser - corner cases in the parsers - correct messages when behavior is different
* | Merge topic 'GNU-4.7-features'Brad King2014-05-081-7/+18
|\ \ | | | | | | | | | | | | 9cbc63e4 Features: Record for GNU 4.7.
| * | Features: Record for GNU 4.7.Stephen Kelly2014-05-071-7/+18
| |/ | | | | | | | | Update the CompileFeatures test to verify that unsupported features do not work.
* | Merge topic 'ctest-bad-generator'Brad King2014-05-084-0/+42
|\ \ | | | | | | | | | | | | 54111286 ctest_build: Do not crash on bad generator name
| * | ctest_build: Do not crash on bad generator nameBrad King2014-05-074-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If creation of the global generator fails, return early with an error message instead of trying to use the generator and crashing. Add a CTestTestBadGenerator test to cover this case. Reported-by: Mathieu Malaterre <malat@debian.org> Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747306
* | | Merge topic 'minor-cleanups'Brad King2014-05-084-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 47795421 Fix whitespace in docs. aa283b6b Features: Fix test for GNU 4.8.1. bbfd4cd4 Features: Include the language of the compiler in error messages.
| * | | Features: Include the language of the compiler in error messages.Stephen Kelly2014-05-074-4/+4
| | | |
* | | | Merge topic 'hp-cpp98-tests'Brad King2014-05-085-1/+58
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | b0f277db HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards
| * | | | HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwardsRolf Eike Beer2014-04-255-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old versions of aCC need a special compiler flag to get full C++98 template support as e.g. CMake itself or the Complex and ComplexOneConfig tests need. The same versions need a special flag to get a proper C++ library, too.
* | | | | Merge topic 'decay-language-version'Brad King2014-05-0828-2/+107
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 205215fb cmTarget: Add CXX_STANDARD_REQUIRED to control decay. 1df2116b Features: Decay language flag if requested is not available. c4f4dac2 Project: Fix exit-on-error with compile feature tests. 5bb7ce72 Project: Use nullary form of main for compile feature tests. 64254e7a Project: Remove extern from static string in feature tests. 0d9c99bf Help: Fix order of help entries. dc7639bd Tests: Fix name of cache variable.
| * | | | | cmTarget: Add CXX_STANDARD_REQUIRED to control decay.Stephen Kelly2014-05-0727-0/+105
| | |/ / / | |/| | |
| * | | | Tests: Fix name of cache variable.Stephen Kelly2014-05-071-2/+2
| | |_|/ | |/| |
* | | | Merge topic 'no-assert-missing-objlib'Brad King2014-05-074-0/+27
|\ \ \ \ | |/ / / |/| | | | | | | | | | | d648c476 cmTarget: Don't assert on object libraries for configure-time location.
| * | | cmTarget: Don't assert on object libraries for configure-time location.Stephen Kelly2014-05-064-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit b8af2011 (cmTarget: Fix listing of source files at configure-time., 2014-04-13) refactored a GetObjectLibrariesCMP0026 method out of GetLanguages. In flight, a conditional use of a target if available was changed to an assert-available. This code is only used to read the LOCATION property at configure time, when the link information is incomplete, and not all targets are defined, so the assert is inappropriate, even though it can lead to incorrect information being generated. CMP0026 warns about the potentially incorrect information anyway.
* | | | Merge topic 'CMAKE_CXX_KNOWN_FEATURES-global-property'Brad King2014-05-061-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 3fdfa5d3 Features: Make CMAKE_CXX_KNOWN_FEATURES a property.
| * | | | Features: Make CMAKE_CXX_KNOWN_FEATURES a property.Stephen Kelly2014-05-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | As a 'built-in' variable it imposes a cost on all variable lookups and it is expected to be rarely used.
* | | | | Merge topic 'dont-rewrite-moc-parameter-file'Brad King2014-05-062-25/+48
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | 17c31b8b Qt4: Extend the Qt4Targets test to cover dir and target moc parameters. 6a5bd7f0 Qt4: write moc parameter file only when content has changed
| * | | | Qt4: Extend the Qt4Targets test to cover dir and target moc parameters.Stephen Kelly2014-05-062-25/+48
| | | | |
* | | | | Merge topic 'file-generate-if-different'Brad King2014-05-014-0/+34
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 42e1cd13 file(GENERATE): Only write the file if content is different.
| * | | | | file(GENERATE): Only write the file if content is different.Stephen Kelly2014-04-304-0/+34
| |/ / / / | | | | | | | | | | | | | | | No policy is used to control this behavior for now.
* | | | | Merge topic 'cxx98-features'Brad King2014-04-302-0/+19
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | a36b957f Features: Add cxx_template_template_parameters.
| * | | | Features: Add cxx_template_template_parameters.Stephen Kelly2014-04-162-0/+19
| | |/ / | |/| | | | | | | | | | | | | | Extend the existing feature infrastructure as needed to support both C++11 and C++98 features.
* | | | Merge topic 'feature-absence-hard-error'Brad King2014-04-2112-8/+57
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d0b1cca Features: FATAL_ERROR on compilers with no recorded features. 447fbb3f Tests: Execute compile features tests unconditionally. 597bb72e Tests: Run RunCMake.target_compile_features unconditionally.
| * | | | Features: FATAL_ERROR on compilers with no recorded features.Stephen Kelly2014-04-178-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users of the new target_compile_features command are expected to check the existence of the CMAKE_CXX_COMPILE_FEATURES variable before attempting to use it to require features.
| * | | | Tests: Execute compile features tests unconditionally.Stephen Kelly2014-04-173-5/+19
| | | | | | | | | | | | | | | | | | | | Conditionally create a dummy test if there are no known features.
| * | | | Tests: Run RunCMake.target_compile_features unconditionally.Stephen Kelly2014-04-161-3/+1
| |/ / / | | | | | | | | | | | | | | | | It is so far testing only cases which are fatal regardless of recorded features.
* | | | Merge topic 'ExternalData-missing-not-fatal'Brad King2014-04-2113-10/+67
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ccd29b9a ExternalData: Warn on missing file instead of failing
| * | | | ExternalData: Warn on missing file instead of failingBrad King2014-04-1713-10/+67
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the primary source tree path named by a DATA{} reference does not exist, produce an AUTHOR_WARNING instead of a FATAL_ERROR. This is useful when writing a new DATA{} reference to a test reference output that has not been created yet. This way the developer can run the test, manually verify the output, and then copy it into place to provide the reference and eliminate the warning. If the named source tree path is expected to be a file but exists as a directory, we still need to produce a FATAL_ERROR.
* | | | CMP0052: Make the warning message more informative.Stephen Kelly2014-04-172-0/+10
| | | | | | | | | | | | | | | | | | | | Print the reason for the offending entry in the INTERFACE_INCLUDE_DIRECTORIES.
* | | | CMP0052: Test that include dirs in install locations cause no warnings.Stephen Kelly2014-04-174-0/+14
|/ / /
* | | Merge topic 'cxx11-features'Brad King2014-04-1544-0/+462
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 60c0d2dd Features: Add cxx_defaulted_move_initializers. c4e67235 Features: Add cxx_long_long_type. dcaafada Features: Add cxx_func_identifier. 251a1f02 Features: Add cxx_local_type_template_args. 53fe7773 Features: Add cxx_extended_friend_declarations. 16603f7c Features: Add cxx_enum_forward_declarations. adf22f61 Features: Add cxx_default_function_template_args. 7b3e8a05 Features: Add cxx_right_angle_brackets. 9a49fd21 Features: Add cxx_decltype_incomplete_return_types. 1889045c Features: Add cxx_sizeof_member. ab455eba Features: Add cxx_thread_local. 300ce248 Features: Add cxx_inline_namespaces. f9d04a96 Features: Add cxx_variadic_macros. 3d76656f Features: Add cxx_uniform_initialization. e74b216c Features: Add cxx_generalized_initializers. ff80c3b4 Features: Add cxx_attributes. ...
| * | | Features: Add cxx_defaulted_move_initializers.Stephen Kelly2014-04-081-0/+7
| | | |
| * | | Features: Add cxx_long_long_type.Stephen Kelly2014-04-081-0/+5
| | | |
| * | | Features: Add cxx_func_identifier.Stephen Kelly2014-04-081-0/+6
| | | |
| * | | Features: Add cxx_local_type_template_args.Stephen Kelly2014-04-081-0/+21
| | | |
| * | | Features: Add cxx_extended_friend_declarations.Stephen Kelly2014-04-081-0/+25
| | | |
| * | | Features: Add cxx_enum_forward_declarations.Stephen Kelly2014-04-081-0/+8
| | | |
| * | | Features: Add cxx_default_function_template_args.Stephen Kelly2014-04-081-0/+12
| | | |
| * | | Features: Add cxx_right_angle_brackets.Stephen Kelly2014-04-081-0/+12
| | | |