[cmake-developers] [PATCH 2/2] Ninja: Fix failing CMakeLib.testRST test

Sam Spilsbury smspillaz at gmail.com
Fri Jun 6 10:12:42 EDT 2014


Ninja was passing a relative path to the compiler which causes
__FILE__ to use that same relative path. This was causing the test to
fail, because Ninja is not a recursive generator and so __FILE__
differed between generators.

For the sake of consistency, an absolute path should always be passed
to the compiler on each generator, so that __FILE__ is always
consistent.
---
 Source/cmNinjaTargetGenerator.cxx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

-- 
Sam Spilsbury
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Ninja-Fix-failing-CMakeLib.testRST-test.patch
Type: application/octet-stream
Size: 1317 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140606/2704a789/attachment.obj>


More information about the cmake-developers mailing list