This PR fixes a regression introduced in #33101 (mea culpa).
From the CMake docs:
The following restrictions apply to where
enable_language()may be called:
- It must be called in file scope, not in a function call.
Fixes #33153.
The `enable_language` command must be called in file scope, not in a
function call.
See: https://cmake.org/cmake/help/latest/command/enable_language.html
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33379.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | TheCharlatan, furszy |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
ACK 9193c3e4340bb5b49af2ab04bce335876e7b1076
ACK 9193c3e4340bb5b49af2ab04bce335876e7b1076