cmake: Improve and document compiler flag checks #1240

pull hebasto wants to merge 3 commits into bitcoin-core:master from hebasto:230312-check changing 3 files +43 −40
  1. hebasto commented at 11:17 PM on March 12, 2023: member

    This PR:

    • drops tinkering with the COMPILE_OPTIONS directory property in try_add_compile_option() and renames it to try_append_cflags()
    • copies related comments from configure.ac
  2. hebasto force-pushed on Mar 22, 2023
  3. real-or-random approved
  4. real-or-random commented at 8:36 AM on March 26, 2023: contributor

    ACK 93f2ba0a4f7e576441eb5feb17e4cb3d178d37a3

  5. hebasto force-pushed on Apr 27, 2023
  6. hebasto commented at 11:58 AM on April 27, 2023: member

    Rebased.

  7. cmake: Use `add_compile_options()` in `try_add_compile_option()`
    This change drops tinkering with the `COMPILE_OPTIONS` directory
    property. Also `try_add_compile_option()` can handle a list of flags
    now, if they are required to be checked simultaneously.
    
    An explanatory comments have been added as well.
    19516ed3e9
  8. cmake, refactor: Rename `try_add_compile_option` to `try_append_cflags`
    Actually, `try_append_cflags()` can handle a list of flags, and the new
    name is similar to the one used in `configure.ac`.
    6ece1507cb
  9. cmake, doc: Document compiler flags a8d059f76c
  10. hebasto force-pushed on Apr 27, 2023
  11. real-or-random merged this on Apr 27, 2023
  12. real-or-random closed this on Apr 27, 2023

  13. hebasto deleted the branch on Apr 28, 2023
  14. sipa referenced this in commit b4eb644b6c on May 12, 2023
  15. hebasto referenced this in commit 49c52ea2b1 on May 13, 2023
  16. vmta referenced this in commit e1120c94a1 on Jun 4, 2023
  17. sipa referenced this in commit 901336eee7 on Jun 21, 2023
  18. vmta referenced this in commit 8f03457eed on Jul 1, 2023
  19. delta1 referenced this in commit 3f32c20932 on Aug 8, 2023
  20. delta1 referenced this in commit 31ac0c1081 on Aug 31, 2023
  21. janus referenced this in commit c4348d88db on Sep 11, 2023
  22. div72 referenced this in commit af627d47c3 on Apr 12, 2025
  23. str4d referenced this in commit 5a6bf5f178 on Jun 4, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:52 UTC