From c9a134ad34207713e4dda94f2356156550fbe3a6 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 30 Jun 2024 20:45:19 +0100 Subject: [PATCH] cmake: Fix `clang-tidy` CI task --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fe2ca62d0d2f6..46d019ff6c1b6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -67,8 +67,9 @@ foreach(config IN LISTS CMAKE_BUILD_TYPE CMAKE_CONFIGURATION_TYPES) string(TOUPPER "${config}" config) set(CMAKE_C_FLAGS_${config} "${CMAKE_C_FLAGS_RELWITHDEBINFO}") endforeach() +set(CMAKE_EXPORT_COMPILE_COMMANDS OFF) add_subdirectory(secp256k1) -set_target_properties(secp256k1 PROPERTIES EXPORT_COMPILE_COMMANDS OFF) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}") # Stable, backwards-compatible consensus functionality.