siegelaaron94 / atom-build-cmake

Generate and build cmake projects from within Atom.
MIT License
6 stars 12 forks source link

Fix extraction of targets from ninja. #24

Closed eile closed 7 years ago

eile commented 7 years ago

'-t targets' is not what one would expect, it shows only internal targets. query all is much better:

[cbdhcp-2-244 Lunchbox threadpool]% ninja -C ../build/ -t targets  | grep voxelize
Fivox/apps/voxelize/install/local: phony
Fivox/apps/voxelize/install: phony
Fivox/apps/voxelize/test: phony
Fivox/apps/voxelize/rebuild_cache: phony
Fivox/apps/voxelize/package_source: phony
Fivox/apps/voxelize/install/strip: phony
Fivox/apps/voxelize/package: phony
Fivox/apps/voxelize/list_install_components: phony
Fivox/apps/voxelize/edit_cache: phony
Fivox/apps/voxelizeBatch/install/strip: phony
Fivox/apps/voxelizeBatch/install: phony
Fivox/apps/voxelizeBatch/list_install_components: phony
Fivox/apps/voxelizeBatch/install/local: phony
Fivox/apps/voxelizeBatch/test: phony
Fivox/apps/voxelizeBatch/package_source: phony
Fivox/apps/voxelizeBatch/rebuild_cache: phony
Fivox/apps/voxelizeBatch/edit_cache: phony
Fivox/apps/voxelizeBatch/package: phony
cpplint_run_voxelize: phony
voxelize-AppleCheckOpenGL: phony
voxelize-runcppcheck: phony
[cbdhcp-2-244 Lunchbox threadpool]% ninja -C ../build/ -t query all | grep voxelize
    bin/voxelize
[cbdhcp-2-244 Lunchbox threadpool]%

@tribal-tec FYI

siegelaaron94 commented 7 years ago

Thanks, I do not use ninja all that much so I am not that familiar with it.