diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 74ee36c6054c2..6407ab9d1c320 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.