summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-02-22 10:45:11 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-23 13:14:14 (GMT)
commitb722eea9253acd9e33921779175fc615d064577a (patch)
tree260955614807534a07e7ecb8895704d6f931cb81 /Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake
parentc2c31ae8969686f1909fe76fef43a232332c7b54 (diff)
downloadCMake-b722eea9253acd9e33921779175fc615d064577a.zip
CMake-b722eea9253acd9e33921779175fc615d064577a.tar.gz
CMake-b722eea9253acd9e33921779175fc615d064577a.tar.bz2
Genex: LINK_LANGUAGE respects LINKER_LANGUAGE property
If target property LINKER_LANGUAGE is set, LINK_LANGUAGE generator expression evaluation must be always successful. This fix can be helpful to elaborate a solution for issue #21818.
Diffstat (limited to 'Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake b/Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake
index 0f0e5d8..f43a7c6 100644
--- a/Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake
+++ b/Tests/RunCMake/target_link_libraries-LINK_LANGUAGE/RunCMakeTest.cmake
@@ -34,6 +34,7 @@ if (RunCMake_GENERATOR MATCHES "Makefiles|Ninja|Visual Studio|Xcode|Watcom WMake
run_cmake_target(genex CXX_interface2 LinkLibraries_CXX_interface2 --config Release)
run_cmake_target(genex C_static LinkLibraries_C_static --config Release)
run_cmake_target(genex CXX_static LinkLibraries_CXX_static --config Release)
+ run_cmake_target(genex C_static_CXX LinkLibraries_C_static_CXX --config Release)
unset(RunCMake_TEST_OPTIONS)
unset(RunCMake_TEST_OUTPUT_MERGE)