From 113ec96626fe7cd2edc0bc4815ae2fc21cfb0546 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 19 Feb 2020 20:05:19 +0100 Subject: 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. --- test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test cases/cmake/8 custom command/subprojects/cmMod/cpyTest.cpp') 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; } -- cgit v1.2.3