Noticed this when going to update the lighting docs, porting what they do using Autotools. i.e:
./autogen.sh
./configure
make src/bitcoind src/bitcoin-cli
make install
If you attempt the same with master:
cmake -B build
cmake --build build --target bitcoind bitcoin-cli
cmake --install build
-- Install configuration: "RelWithDebInfo"
CMake Error at build/src/test/cmake_install.cmake:57 (file):
file INSTALL cannot find "/root/ci_scratch/build/src/test/test_bitcoin": No
such file or directory.
Call Stack (most recent call first):
build/src/cmake_install.cmake:77 (include)
build/cmake_install.cmake:57 (include)
The output of cmake --build build --target list_install_components just prints (if configured with the kernel):
cmake --build build --target list_install_components
> 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.