summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Languages
Commit message (Collapse)AuthorAgeFilesLines
* enable_language: Allow CMakeDetermine<LANG>Compiler module to fail earlyBrad King2015-06-295-0/+11
| | | | | If the module reports a FATAL_ERROR, skip the rest of the steps to enable the language to avoid unnecessary following error messages.
* RunCMake: Expect empty output by default.Stephen Kelly2014-12-313-2/+3
| | | | | | | | | | | Expect tests to specify stderr content if it is present. Fix the CMP0019 test, which has only been testing the WARN status until now. Specify in the CommandLine and FPHSA tests that content is at least one character. Set policies in the Language and CheckModules tests, which have empty test output, modulo unrelated policies on some platforms.
* cmTarget: Simplify INTERFACE_SOURCES usage requirement lookupBrad King2014-07-072-3/+7
| | | | Use the AddInterfaceEntries helper to avoid duplication.
* Cygwin: Avoid legacy warnings in RunCMake.* testsBrad King2013-08-131-1/+1
| | | | | | Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
* Genex: Disallow LINKER_LANGUAGE only when used on a static library.Stephen Kelly2013-07-261-2/+2
| | | | | For shared libraries and executables, the linker_language is indepenedent of the linked libraries.
* Remove the LINK_LANGUAGE generator expression.Stephen Kelly2013-07-242-3/+4
| | | | | | | | | | | It accepted an optional argument to test for equality, but no way to get the linker language of a particular target. TARGET_PROPERTY provides this flexibility and STREQUAL provides the necessary API for equality test. Extend the CompileDefinitions test to cover accessing the property of another target.
* Genex: Report error if a target file is needed to evaluate link libraries.Stephen Kelly2013-06-246-0/+21
| | | | | | | | Constructs such as target_link_libraries(foo $<$<STREQUAL:$<TARGET_FILE:foo>,foo.so>:bar>) segfault before this patch.
* Genex: Make LINK_LANGUAGE report an error when evaluating link libraries.Stephen Kelly2013-06-245-0/+19
|
* Add whitespace after colons in error messages.Stephen Kelly2013-06-211-1/+1
|
* Do not crash on SHARED library without language (#13324)Brad King2012-06-206-0/+9
Since commit e1409ac5 (Support building shared libraries or modules without soname, 2012-04-22) CMake crashes on the code add_library(foo SHARED foo.nolang) because the logic to lookup the language's soname flag was moved from cmTarget::GetLibraryNames to cmMakefile::GetSONameFlag without its check for a NULL language. Restore the check for NULL. Add RunCMake.Languages test to cover language error cases like this one.