Skip to content

Commit

Permalink
cmake: Enable C language in the root CMakeLists.txt
Browse files Browse the repository at this point in the history
This change fixes Guix builds.
  • Loading branch information
hebasto committed Jul 1, 2024
1 parent 1eb1250 commit c308f9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# We enable C here to make all related details and flags
# available in this scope because the `test-security-check.py`
# and `test-symbol-check.py` scripts rely on them. Otherwise,
# C compiler details and flags will only be available within
# the `secp256k1` subtree.
enable_language(C)


list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/module)

#=============================
Expand Down

0 comments on commit c308f9e

Please sign in to comment.