summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/target_compile_options
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-10-22 16:48:28 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2018-10-26 12:09:41 -0400
commit4babc9058a996e9cccd183eb25eda5faedd04591 (patch)
tree36ad3d5ff4e92a5f91972ae3572a84ed0883675e /Tests/RunCMake/target_compile_options
parent45a49ae58abe835bc3ad446b054fa07035c33d60 (diff)
downloadcmake-4babc9058a996e9cccd183eb25eda5faedd04591.tar.gz
cmTargetPropCommandBase: check keywords after parsing
The following was disallowed: add_library(iface INTERFACE) target_link_libraries(iface PUBLIC) just due to the mention of the `PUBLIC` keyword. Instead, only error if there are actually `PUBLIC` dependencies specified (and analogously for other restrictions). Update tests to expect this new behavior.
Diffstat (limited to 'Tests/RunCMake/target_compile_options')
-rw-r--r--Tests/RunCMake/target_compile_options/empty_keyword_args-result.txt1
-rw-r--r--Tests/RunCMake/target_compile_options/empty_keyword_args-stderr.txt5
2 files changed, 0 insertions, 6 deletions
diff --git a/Tests/RunCMake/target_compile_options/empty_keyword_args-result.txt b/Tests/RunCMake/target_compile_options/empty_keyword_args-result.txt
deleted file mode 100644
index d00491fd7e..0000000000
--- a/Tests/RunCMake/target_compile_options/empty_keyword_args-result.txt
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/Tests/RunCMake/target_compile_options/empty_keyword_args-stderr.txt b/Tests/RunCMake/target_compile_options/empty_keyword_args-stderr.txt
deleted file mode 100644
index 381ff48259..0000000000
--- a/Tests/RunCMake/target_compile_options/empty_keyword_args-stderr.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-CMake Error at empty_keyword_args.cmake:2 \(target_compile_options\):
- target_compile_options may only set INTERFACE properties on INTERFACE
- targets
-Call Stack \(most recent call first\):
- CMakeLists.txt:5 \(include\)