-
- Downloads
Ninja: Add `$subdir/{test,install,package}` targets
With the Makefile generator one can use `cd $subdir; make install` to build and install targets associated with a given subdirectory. This is not possible to do with the Ninja generator since there is only one `build.ninja` file at the top of the build tree. However, we can approximate it by allowing one to run `ninja $subdir/install` at the top of the tree to build the targets in the corresponding subdirectory and install them. This also makes sense for `test`, `package`, and other GLOBAL_TARGET targets. It was already done for `all` by commit v3.6.0-rc1~240^2~2 (Ninja: Add `$subdir/all` targets, 2016-03-11).
Showing
- Help/generator/Ninja.rst 14 additions, 3 deletionsHelp/generator/Ninja.rst
- Help/release/dev/ninja-directory-targets.rst 8 additions, 0 deletionsHelp/release/dev/ninja-directory-targets.rst
- Source/cmGlobalNinjaGenerator.cxx 8 additions, 3 deletionsSource/cmGlobalNinjaGenerator.cxx
- Source/cmNinjaTargetGenerator.cxx 1 addition, 12 deletionsSource/cmNinjaTargetGenerator.cxx
- Source/cmNinjaUtilityTargetGenerator.cxx 12 additions, 5 deletionsSource/cmNinjaUtilityTargetGenerator.cxx
- Tests/RunCMake/Ninja/RunCMakeTest.cmake 6 additions, 0 deletionsTests/RunCMake/Ninja/RunCMakeTest.cmake
- Tests/RunCMake/Ninja/SubDir-install-stdout.txt 1 addition, 0 deletionsTests/RunCMake/Ninja/SubDir-install-stdout.txt
- Tests/RunCMake/Ninja/SubDir-test-stdout.txt 1 addition, 0 deletionsTests/RunCMake/Ninja/SubDir-test-stdout.txt
- Tests/RunCMake/Ninja/SubDir.cmake 5 additions, 0 deletionsTests/RunCMake/Ninja/SubDir.cmake
- Tests/RunCMake/Ninja/SubDir/CMakeLists.txt 4 additions, 0 deletionsTests/RunCMake/Ninja/SubDir/CMakeLists.txt
Loading
Please register or sign in to comment