[cmake-developers] Using CMake generated ninja file as a subninja file

Brad King brad.king at kitware.com
Fri May 13 15:25:14 EDT 2016


On 05/13/2016 12:13 PM, Nicolas Desprès wrote:
> with a value that looks like this: "-Wl,-bundle_loader,/Users/polrop/Documents/cmake/_build ninja/Tests/ExportImport/Export/testExe2"
> 
> lie on the caller site because the "if (li->IsPath)" in OutputLinkLibraries()
> should not be true for such a value.

The problem is that "IsPath" really means "quote this like a path on the command line".
The value above *does* need such quoting.  We cannot make the !IsPath code path
do the quoting because it is not expected to do so.  This is kind of a corner case
where the link item is a flag that contains a path that needs to be treated as a
path.  Major refactoring would be needed to encode that information structurally
so for now please make your logic recognize this case and work around it.

Thanks,
-Brad



More information about the cmake-developers mailing list