Noticed this when going to update the lighting docs, porting what they do using Autotools. i.e:
0./autogen.sh
1./configure
2make src/bitcoind src/bitcoin-cli
3make install
If you attempt the same with master:
0cmake -B build
1cmake --build build --target bitcoind bitcoin-cli
2cmake --install build
3-- Install configuration: "RelWithDebInfo"
4CMake Error at build/src/test/cmake_install.cmake:57 (file):
5 file INSTALL cannot find "/root/ci_scratch/build/src/test/test_bitcoin": No
6 such file or directory.
7Call Stack (most recent call first):
8 build/src/cmake_install.cmake:77 (include)
9 build/cmake_install.cmake:57 (include)
The output of cmake --build build --target list_install_components
just prints (if configured with the kernel):
0cmake --build build --target list_install_components
1> Available install components are: "Kernel" "Unspecified"
so it seems like component based install either isn’t yet possible, or the names are not easily discoverable.
Otherwise, I don’t think we should fail to install because we can’t find a binary the user didn’t want.