summaryrefslogtreecommitdiff
path: root/test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-02-19 20:05:19 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-02-20 11:16:37 +0100
commit113ec96626fe7cd2edc0bc4815ae2fc21cfb0546 (patch)
treec793ed45ea352e1f4ceb9ef279f6f96ab64e526c /test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp
parent31eb41ec2fd2c7ed06406fb4e5ea87af5010d4e5 (diff)
downloadmeson-113ec96626fe7cd2edc0bc4815ae2fc21cfb0546.tar.gz
cmake: Fix relative paths for add_custom_{command,target}
Do this by tracking CMAKE_CURRENT_{SOURCE,BINARY}_DIR variables. This is achieved by injecting CMake code with CMAKE_PROJECT_INCLUDE and overriding some builtin functions with a wrapper that adds additional trace information.
Diffstat (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp')
-rw-r--r--test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp b/test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp
index a9d05c744..f76225152 100644
--- a/test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp
+++ b/test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp
@@ -1,7 +1,8 @@
#include "cpyTest.hpp"
#include "cpyTest2.hpp"
#include "cpyTest3.hpp"
+#include "ccppyyTTeesstt/cpyTest4.hpp"
std::string getStrCpyTest() {
- return CPY_TEST_STR_2 CPY_TEST_STR_3;
+ return CPY_TEST_STR_2 CPY_TEST_STR_3 CPY_TEST_STR_4;
}