summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GenEx-LINK_LIBRARY
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-02-16 18:34:28 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2022-02-16 18:34:28 +0100
commit397ee55cd62dcfcbafb4ff62b189a4192e07d1e5 (patch)
tree47b3304aac407847d1afd338949e04358c4ed72f /Tests/RunCMake/GenEx-LINK_LIBRARY
parent1e495fdab92b8ce5f2778c0cbc5e0ed55b056b98 (diff)
downloadcmake-397ee55cd62dcfcbafb4ff62b189a4192e07d1e5.tar.gz
genex-LINK_LIBRARY: rename configuration variables
To be more consistent between genex and variables as well as the forecomming LINK_GROUP genex, rename variable *_LINK_USING_<FEATURE>* in *_LINK_LIBRARY_USING_<FEATURE>*
Diffstat (limited to 'Tests/RunCMake/GenEx-LINK_LIBRARY')
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature2.cmake2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3-stderr.txt2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4-stderr.txt2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5-stderr.txt2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6-stderr.txt2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7-stderr.txt2
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/compatible-features.cmake12
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/feature-not-supported.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features1.cmake8
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features2.cmake10
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features3.cmake10
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/library-ignored.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/nested-compatible-features.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/nested-incompatible-features.cmake8
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/only-targets.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/override-features3.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/override-features4.cmake4
-rw-r--r--Tests/RunCMake/GenEx-LINK_LIBRARY/target_link_options.cmake2
23 files changed, 53 insertions, 53 deletions
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature2.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature2.cmake
index 15b5ca092c..2c9efce86b 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature2.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature2.cmake
@@ -1,6 +1,6 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3-stderr.txt b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3-stderr.txt
index 69963fe4a8..48cf51e20d 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3-stderr.txt
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at bad-feature3.cmake:[0-9]+ \(add_library\):
- Feature 'feat', specified by variable 'CMAKE_C_LINK_USING_feat', is
+ Feature 'feat', specified by variable 'CMAKE_C_LINK_LIBRARY_USING_feat', is
malformed \("<LIBRARY>", "<LIB_ITEM>", or "<LINK_ITEM>" patterns are
missing\) and cannot be used to link target 'lib'.
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3.cmake
index 796046586a..dab6a64d04 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature3.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4-stderr.txt b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4-stderr.txt
index 7385115dd8..c074dd0c98 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4-stderr.txt
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at bad-feature4.cmake:[0-9]+ \(add_library\):
- Feature 'feat', specified by variable 'CMAKE_C_LINK_USING_feat', is
+ Feature 'feat', specified by variable 'CMAKE_C_LINK_LIBRARY_USING_feat', is
malformed \("<LIBRARY>", "<LIB_ITEM>", or "<LINK_ITEM>" patterns are
missing\) and cannot be used to link target 'lib'.
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4.cmake
index b40cfafcdf..6942f7c0b6 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature4.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "-opt")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "-opt")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5-stderr.txt b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5-stderr.txt
index 989457716b..6604307971 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5-stderr.txt
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at bad-feature5.cmake:[0-9]+ \(add_library\):
- Feature 'feat', specified by variable 'CMAKE_C_LINK_USING_feat', is
+ Feature 'feat', specified by variable 'CMAKE_C_LINK_LIBRARY_USING_feat', is
malformed \(wrong number of elements\) and cannot be used to link target
'lib'.
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5.cmake
index 8ce1ecff15..d0a827a944 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature5.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "-prefix" "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "-prefix" "<LIBRARY>")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6-stderr.txt b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6-stderr.txt
index d8d0e1906a..9de4ffa97a 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6-stderr.txt
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at bad-feature6.cmake:[0-9]+ \(add_library\):
- Feature 'feat', specified by variable 'CMAKE_C_LINK_USING_feat', is
+ Feature 'feat', specified by variable 'CMAKE_C_LINK_LIBRARY_USING_feat', is
malformed \("<LIBRARY>", "<LIB_ITEM>", or "<LINK_ITEM>" patterns are missing
for "PATH{}" alternative\) and cannot be used to link target 'lib'.
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6.cmake
index 7b72ad514a..04a50f8299 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature6.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "PATH{}NAME{<LIBRARY>}")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "PATH{}NAME{<LIBRARY>}")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7-stderr.txt b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7-stderr.txt
index 2a498cdb59..9ea9936594 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7-stderr.txt
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at bad-feature7.cmake:[0-9]+ \(add_library\):
- Feature 'feat', specified by variable 'CMAKE_C_LINK_USING_feat', is
+ Feature 'feat', specified by variable 'CMAKE_C_LINK_LIBRARY_USING_feat', is
malformed \("<LIBRARY>", "<LIB_ITEM>", or "<LINK_ITEM>" patterns are missing
for "NAME{}" alternative\) and cannot be used to link target 'lib'.
Call Stack \(most recent call first\):
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7.cmake
index 173f86cd3f..9659811e6a 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/bad-feature7.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "NAME{}PATH{<LIBRARY>}")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "NAME{}PATH{<LIBRARY>}")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/compatible-features.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/compatible-features.cmake
index 2579a5f52e..fb88e3665c 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/compatible-features.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/compatible-features.cmake
@@ -1,10 +1,10 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
-set(CMAKE_C_LINK_USING_feat2_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat2 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat2_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat2 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
@@ -15,7 +15,7 @@ add_library(dep3 SHARED empty.c)
target_link_libraries(dep3 PUBLIC dep2)
add_library(lib1 SHARED empty.c)
-target_link_libraries(lib1 PRIVATE $<LINK_LIBRARY:feat2,dep1,dep2>)
+target_link_libraries(lib1 PRIVATE "$<LINK_LIBRARY:feat2,dep1,dep2>")
add_library(lib2 SHARED empty.c)
-target_link_libraries(lib2 PRIVATE $<LINK_LIBRARY:DEFAULT,dep2,dep3>)
+target_link_libraries(lib2 PRIVATE "$<LINK_LIBRARY:DEFAULT,dep2,dep3>")
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/feature-not-supported.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/feature-not-supported.cmake
index 0666227638..0d952c28b9 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/feature-not-supported.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/feature-not-supported.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED FALSE)
-set(CMAKE_C_LINK_USING_feat "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED FALSE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "<LIBRARY>")
add_library(dep SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features1.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features1.cmake
index d96b2143d4..c230c4fbe4 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features1.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features1.cmake
@@ -1,10 +1,10 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
-set(CMAKE_C_LINK_USING_feat2_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat2 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat2_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat2 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features2.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features2.cmake
index 1845fdbe51..d204ebdf60 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features2.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features2.cmake
@@ -1,10 +1,10 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
-set(CMAKE_C_LINK_USING_feat2_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat2 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat2_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat2 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
@@ -12,4 +12,4 @@ add_library(dep2 SHARED empty.c)
target_link_libraries(dep2 PUBLIC dep1)
add_library(lib SHARED empty.c)
-target_link_libraries(lib PRIVATE $<LINK_LIBRARY:feat2,dep1,dep2>)
+target_link_libraries(lib PRIVATE "$<LINK_LIBRARY:feat2,dep1,dep2>")
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features3.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features3.cmake
index 1198d91f2a..bf79e11a5e 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features3.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/incompatible-features3.cmake
@@ -1,15 +1,15 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
-set(CMAKE_C_LINK_USING_feat2_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat2 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat2_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat2 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
add_library(dep2 SHARED empty.c)
-target_link_libraries(dep2 PUBLIC $<LINK_LIBRARY:feat1,dep1>)
+target_link_libraries(dep2 PUBLIC "$<LINK_LIBRARY:feat1,dep1>")
add_library(lib SHARED empty.c)
target_link_libraries(lib PRIVATE dep1 dep2)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/library-ignored.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/library-ignored.cmake
index e000b97d99..a888bb8a12 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/library-ignored.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/library-ignored.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat "<LIBRARY>")
add_library(dep OBJECT empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-compatible-features.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-compatible-features.cmake
index d3b04e8c20..561aa09b62 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-compatible-features.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-compatible-features.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-incompatible-features.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-incompatible-features.cmake
index 8565fa96c2..746638e220 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-incompatible-features.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/nested-incompatible-features.cmake
@@ -1,10 +1,10 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
-set(CMAKE_C_LINK_USING_feat2_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat2 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat2_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat2 "<LIBRARY>")
add_library(dep1 SHARED empty.c)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/only-targets.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/only-targets.cmake
index e29ad6cae8..8cec0c3b2f 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/only-targets.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/only-targets.cmake
@@ -1,7 +1,7 @@
enable_language(C)
-set(CMAKE_C_LINK_USING_feat1_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat1 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat1_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat1 "<LIBRARY>")
set(CMAKE_LINK_LIBRARIES_ONLY_TARGETS 1)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features3.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features3.cmake
index 7f010fd6a5..a1437e60a9 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features3.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features3.cmake
@@ -1,7 +1,7 @@
include(incompatible-features1.cmake)
-set(CMAKE_C_LINK_USING_feat3_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat3 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat3_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat3 "<LIBRARY>")
set_property(TARGET lib PROPERTY LINK_LIBRARY_OVERRIDE "feat3,dep1")
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features4.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features4.cmake
index 405cc8a1ff..f34f7452e8 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features4.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/override-features4.cmake
@@ -2,8 +2,8 @@
include(incompatible-features1.cmake)
-set(CMAKE_C_LINK_USING_feat3_SUPPORTED TRUE)
-set(CMAKE_C_LINK_USING_feat3 "<LIBRARY>")
+set(CMAKE_C_LINK_LIBRARY_USING_feat3_SUPPORTED TRUE)
+set(CMAKE_C_LINK_LIBRARY_USING_feat3 "<LIBRARY>")
set_property(TARGET lib PROPERTY LINK_LIBRARY_OVERRIDE "feat3,dep1")
set_property(TARGET lib PROPERTY LINK_LIBRARY_OVERRIDE_dep1 feat1)
diff --git a/Tests/RunCMake/GenEx-LINK_LIBRARY/target_link_options.cmake b/Tests/RunCMake/GenEx-LINK_LIBRARY/target_link_options.cmake
index 800124cc25..a989a53d20 100644
--- a/Tests/RunCMake/GenEx-LINK_LIBRARY/target_link_options.cmake
+++ b/Tests/RunCMake/GenEx-LINK_LIBRARY/target_link_options.cmake
@@ -1,4 +1,4 @@
enable_language(C)
add_library(empty SHARED empty.c)
-target_link_options(empty PRIVATE $<LINK_LIBRARY:FEAT>)
+target_link_options(empty PRIVATE "$<LINK_LIBRARY:FEAT>")