package/ninja: fix build for cmake 3.10
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 6 Feb 2020 13:21:32 +0000 (14:21 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 7 Feb 2020 14:59:07 +0000 (15:59 +0100)
commitbb5ffe3c907ac2abc12d2d09d913c2fccaa71330
tree6e57e12744ab282845596f6ba559a83bb3d55650
parent0d41be5f6cff753a5e5b869f2bcdba70eff25bcc
package/ninja: fix build for cmake 3.10

If the host cmake is 3.10, the configuration step produces
the following error:

CMake Error at CMakeLists.txt:87 (target_link_libraries):
Target "libninja" of type OBJECT_LIBRARY may not be linked into another
target. One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.

This patch fixes CMakeLists.txt to use the object library as it was intended
in cmake 3.10.

Fixes:
https://bugs.busybox.net/show_bug.cgi?id=12546

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Tested-by: Damian Tometzki <dti@familie-tometzki.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ninja/0003-CMake-fix-object-library-usage.patch [new file with mode: 0644]