summaryrefslogtreecommitdiff
path: root/test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-08-08 15:37:51 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-08-09 19:36:38 +0300
commita98db022aa4cc0798fba4bb2f723e5b0cc3b2570 (patch)
tree95c445f899f3dbed7f86b219a7fd97df7c3806cf /test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
parent948741355f1d624f209e2b2d02740372fc9aa8c2 (diff)
downloadmeson-a98db022aa4cc0798fba4bb2f723e5b0cc3b2570.tar.gz
cmake: Detect custom command targets in compiler args
This is required to make `-include /path/to/custom/target.hpp` work. This setup is used by wxWidgets and this PR is required to use wxWidgets as a CMake subproject.
Diffstat (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp')
-rw-r--r--test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp b/test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
index 790557b3a..964062ffe 100644
--- a/test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
+++ b/test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
@@ -5,6 +5,12 @@
using namespace std;
+#ifdef TEST_CMD_INCLUDE
+#if CPY_INC_WAS_INCLUDED != 1
+#error "cpyInc.hpp was not included"
+#endif
+#endif
+
int main() {
this_thread::sleep_for(chrono::seconds(1));
ofstream out1("macro_name.txt");