meta-openembedded/meta-python/recipes-devtools/python/python3-ninja/CMakeLists.txt
Zoltán Böszörményi bf6779b62a python3-ninja: New recipe
Some python modules rely on "import ninja".

Only build and ship the python parts, and don't download and
build ninja from sources. Use the already built ninja instead.

The CMakeLists.txt file is a crippled copy from this ninja
python module's sources, removing almost everything, and
adding a dummy install target, so do_install() doesn't fail.

The python code is patched so ninja is used from PATH.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-10 09:01:54 -08:00

10 lines
207 B
CMake

cmake_minimum_required(VERSION 3.15)
project(NinjaPythonDistributions)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH})
install(CODE "
message(STATUS \"Install ninja project\")
")