diff options
author | Brad King <brad.king@kitware.com> | 2019-10-02 18:31:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-04 14:39:00 (GMT) |
commit | 9c9e66289acc7f54dfdb518a92b625f5a34c7c2d (patch) | |
tree | 9d378288d391e394c059e8acd1e8a4a263b5bb93 /Tests/ConfigSources/iface_debug_src.cpp | |
parent | 395e5f77fcd900b4a7a48eaa2da2e3554b694cf1 (diff) | |
download | CMake-9c9e66289acc7f54dfdb518a92b625f5a34c7c2d.zip CMake-9c9e66289acc7f54dfdb518a92b625f5a34c7c2d.tar.gz CMake-9c9e66289acc7f54dfdb518a92b625f5a34c7c2d.tar.bz2 |
Tests: Enable ConfigSources test on every configuration
Revise the test itself to work in all configurations and verify that
certain sources are only built by whatever configuration is tested.
Diffstat (limited to 'Tests/ConfigSources/iface_debug_src.cpp')
-rw-r--r-- | Tests/ConfigSources/iface_debug_src.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/ConfigSources/iface_debug_src.cpp b/Tests/ConfigSources/iface_debug_src.cpp index 63b22fc..010059f 100644 --- a/Tests/ConfigSources/iface_debug_src.cpp +++ b/Tests/ConfigSources/iface_debug_src.cpp @@ -1,5 +1,11 @@ +#ifndef CFG_DEBUG +# error "This source should only be compiled in a Debug configuration." +#endif +#ifdef CFG_OTHER +# error "This source should not be compiled in a non-Debug configuration." +#endif -#include "iface_debug.h" +#include "iface.h" int iface_debug() { |