diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-16 13:20:16 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-02 09:56:37 (GMT) |
commit | 24466f22c0c0e3235f0a21bd2a298c39df50e2f3 (patch) | |
tree | 0769cc145436b80006cdc53eca5f1cab1d1ce6a3 /Tests/CMakeCommands/target_compile_options/consumer.cpp | |
parent | 80ca9c4b41ecdce069a6c3f4c1b558084a748876 (diff) | |
download | CMake-24466f22c0c0e3235f0a21bd2a298c39df50e2f3.zip CMake-24466f22c0c0e3235f0a21bd2a298c39df50e2f3.tar.gz CMake-24466f22c0c0e3235f0a21bd2a298c39df50e2f3.tar.bz2 |
Add target_compile_options command.
This command populates the COMPILE_OPTIONS target property.
Diffstat (limited to 'Tests/CMakeCommands/target_compile_options/consumer.cpp')
-rw-r--r-- | Tests/CMakeCommands/target_compile_options/consumer.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_options/consumer.cpp b/Tests/CMakeCommands/target_compile_options/consumer.cpp new file mode 100644 index 0000000..1299606 --- /dev/null +++ b/Tests/CMakeCommands/target_compile_options/consumer.cpp @@ -0,0 +1,18 @@ + +#ifdef DO_GNU_TESTS + +# ifdef MY_PRIVATE_DEFINE +# error Unexpected MY_PRIVATE_DEFINE +# endif + +# ifndef MY_PUBLIC_DEFINE +# error Expected MY_PUBLIC_DEFINE +# endif + +# ifndef MY_INTERFACE_DEFINE +# error Expected MY_INTERFACE_DEFINE +# endif + +#endif + +int main() { return 0; } |