summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-04-11 15:49:52 -0400
committerRobert Maynard <rmaynard@nvidia.com>2023-05-04 09:39:06 -0400
commitc42630ee62df80e649211e99c510cab7ac28fc0b (patch)
tree8b450a62d4e4c9559b8fe03b11575bde8d154608 /Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt
parent0fb923c46041d67110c8e0907afdf66b3b25f25a (diff)
downloadcmake-c42630ee62df80e649211e99c510cab7ac28fc0b.tar.gz
cmGeneratorExpressionNode: implement `COMPILE_ONLY` genex
This generator expression is the inverse of `LINK_ONLY` and only coveys usage requirements for the purposes of compilation. Its intended use is to avoid needing to export targets that do not have link usage requirements (e.g., header-only libraries) when used by another target. See: #15415
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt')
-rw-r--r--Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt b/Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt
index 5e7fce2a1b..8c93d59ac3 100644
--- a/Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt
+++ b/Tests/RunCMake/GeneratorExpression/COMPILE_ONLY-not-compiling-stderr.txt
@@ -3,6 +3,6 @@ CMake Error at COMPILE_ONLY-not-compiling.cmake:1 \(add_custom_target\):
\$<COMPILE_ONLY:something>
- \$<COMPILE_ONLY:...> may only be used via linking
+ \$<COMPILE_ONLY:...> may only be used for linking
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)