summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Languages/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Genex: Add $<LINK_LANGUAGE:...> and $<LINK_LANG_AND_ID:...>Marc Chevrier2020-02-261-1/+1
| | | | | | This MR may help to solve issues #19757 and #18008 Fixes: #19965
* CUDA: Fix crash on linking to a CUDA target without CUDA enabledBrad King2018-12-051-0/+2
| | | | | | | | Do not try to device link or add CUDA runtime libraries if the language is not enabled. Fixes: #18673 Issue: #18614
* enable_language: Allow CMakeDetermine<LANG>Compiler module to fail earlyBrad King2015-06-291-0/+2
| | | | | If the module reports a FATAL_ERROR, skip the rest of the steps to enable the language to avoid unnecessary following error messages.
* Genex: Report error if a target file is needed to evaluate link libraries.Stephen Kelly2013-06-241-0/+2
| | | | | | | | 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-241-0/+1
|
* Do not crash on SHARED library without language (#13324)Brad King2012-06-201-0/+3
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.