summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable/testcflags.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-25 13:38:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-25 13:38:06 (GMT)
commit07ef88c985a66cec5126930dbc3cfd736072183e (patch)
treecc9834e4f1f898845408fa21c006d4f9c391b318 /Tests/Complex/Executable/testcflags.c
parent008406a96c66afaa6a3e1105c730cffd1b1e8bc8 (diff)
downloadCMake-07ef88c985a66cec5126930dbc3cfd736072183e.zip
CMake-07ef88c985a66cec5126930dbc3cfd736072183e.tar.gz
CMake-07ef88c985a66cec5126930dbc3cfd736072183e.tar.bz2
ENH: add COMPILE_FLAGS to targets
Diffstat (limited to 'Tests/Complex/Executable/testcflags.c')
-rw-r--r--Tests/Complex/Executable/testcflags.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/testcflags.c b/Tests/Complex/Executable/testcflags.c
index 6c692f3..f4d5848 100644
--- a/Tests/Complex/Executable/testcflags.c
+++ b/Tests/Complex/Executable/testcflags.c
@@ -1,4 +1,15 @@
#include <string.h>
+
+int TestTargetCompileFlags(char* m)
+{
+#ifndef COMPLEX_TARGET_FLAG
+ strcpy(m, "CMAKE SET_TARGET_PROPERTIES COMPILE_FLAGS did not work");
+ return 0;
+#endif
+ strcpy(m, "CMAKE SET_TARGET_PROPERTIES COMPILE_FLAGS worked");
+ return 1;
+}
+
int TestCFlags(char* m)
{
/* TEST_CXX_FLAGS should not be defined in a c file */