Skip to content

Commit c308f9e

Browse files
committed
cmake: Enable C language in the root CMakeLists.txt
This change fixes Guix builds.
1 parent 1eb1250 commit c308f9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ set(CMAKE_CXX_STANDARD 20)
5555
set(CMAKE_CXX_STANDARD_REQUIRED ON)
5656
set(CMAKE_CXX_EXTENSIONS OFF)
5757

58+
# We enable C here to make all related details and flags
59+
# available in this scope because the `test-security-check.py`
60+
# and `test-symbol-check.py` scripts rely on them. Otherwise,
61+
# C compiler details and flags will only be available within
62+
# the `secp256k1` subtree.
63+
enable_language(C)
64+
65+
5866
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/module)
5967

6068
#=============================

0 commit comments

Comments
 (0)