summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_compile_options/CMP0101.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-13 15:37:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-13 15:38:00 (GMT)
commit4bac5b628ea1e854ab23b6e713ad3eb211b3a9e3 (patch)
treeb445d0ca679da65f42f13f25085108aaf647769f /Tests/RunCMake/target_compile_options/CMP0101.c
parent041e58d195587ddc9aa6d87148ea9c3ab63310d1 (diff)
parent2678e310537a965b531cfc2c1f54fc72aac9d7d5 (diff)
downloadCMake-4bac5b628ea1e854ab23b6e713ad3eb211b3a9e3.zip
CMake-4bac5b628ea1e854ab23b6e713ad3eb211b3a9e3.tar.gz
CMake-4bac5b628ea1e854ab23b6e713ad3eb211b3a9e3.tar.bz2
Merge topic 'target_compile_options-BEFORE-keyword'
2678e31053 target_compile_options: ensure BEFORE keyword is handled in all scopes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4203
Diffstat (limited to 'Tests/RunCMake/target_compile_options/CMP0101.c')
-rw-r--r--Tests/RunCMake/target_compile_options/CMP0101.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_compile_options/CMP0101.c b/Tests/RunCMake/target_compile_options/CMP0101.c
new file mode 100644
index 0000000..250869a
--- /dev/null
+++ b/Tests/RunCMake/target_compile_options/CMP0101.c
@@ -0,0 +1,9 @@
+
+#if defined(BEFORE_KEYWORD)
+# error "BEFORE not honored"
+#endif
+
+int main()
+{
+ return 0;
+}