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/main_debug.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/main_debug.cpp')
-rw-r--r-- | Tests/ConfigSources/main_debug.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/ConfigSources/main_debug.cpp b/Tests/ConfigSources/main_debug.cpp new file mode 100644 index 0000000..9b1e68a --- /dev/null +++ b/Tests/ConfigSources/main_debug.cpp @@ -0,0 +1,13 @@ +#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.h" + +int main(int argc, char** argv) +{ + return iface_src() + iface_debug(); +} |