Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin/bitcoin#31899: cmake: Exclude generated sources from tr…
…anslation ff4ddd3 Revert "cmake: Ensure generated sources are up to date for `translate` target" (Hennadii Stepanov) 03b3166 cmake: Exclude generated sources from translation (Hennadii Stepanov) Pull request description: This PR fixes an error encountered when building the `translate` target: ``` $ gmake -j $(nproc) -C depends MULTIPROCESS=1 $ cmake -G "Unix Makefiles" --preset dev-mode --toolchain depends/x86_64-pc-linux-gnu/toolchain.cmake -DWITH_USDT=OFF $ cmake --build build_dev_mode -t translate gmake[3]: *** No rule to make target 'src/test/ipc_test.capnp.c++', needed by 'src/qt/CMakeFiles/translate'. Stop. gmake[2]: *** [CMakeFiles/Makefile2:1646: src/qt/CMakeFiles/translate.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:1653: src/qt/CMakeFiles/translate.dir/rule] Error 2 gmake: *** [Makefile:699: translate] Error 2 ``` The previous [attempt](bitcoin/bitcoin@864386a) to address this issue worked only with Ninja generators and has been reverted. Essentially, this PR modifies the `translate` target so that it ignores generated sources rather than attempting to update them. At present, multiprocess-specific sources do not contain any translatable strings. Nonetheless, it is prudent to maintain a general approach. ACKs for top commit: TheCharlatan: ACK ff4ddd3 pablomartin4btc: tACK ff4ddd3 Tree-SHA512: 6471498a33b145e073f76bd007591b0449e5d520f141c3e3afeca02a09c160fd0f572ec7172dd84703cdc2a1175ad8f3c91e8b0bf705d671338d760786765f56
- Loading branch information