File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ set(CMAKE_CXX_EXTENSIONS OFF)
7171
7272list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake/module)
7373
74+ # Flatten static lib dependencies.
75+ # Without this, if libfoo.a depends on libbar.a, libfoo's objects can't begin
76+ # to be compiled until libbar.a has been created.
77+ if (NOT DEFINED CMAKE_OPTIMIZE_DEPENDENCIES)
78+ set (CMAKE_OPTIMIZE_DEPENDENCIES TRUE )
79+ endif ()
80+
7481#=============================
7582# Configurable options
7683#=============================
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ add_library(minisketch STATIC EXCLUDE_FROM_ALL
7474 ${PROJECT_SOURCE_DIR} /src/minisketch/src/fields/generic_8bytes.cpp
7575)
7676
77+ # Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/24058
78+ set_target_properties (minisketch PROPERTIES OPTIMIZE_DEPENDENCIES OFF )
79+
7780target_include_directories (minisketch
7881 PUBLIC
7982 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /src/minisketch/include >
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ add_library(bitcoin_util STATIC EXCLUDE_FROM_ALL
3636 ../sync.cpp
3737)
3838
39+ # Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/24058
40+ set_target_properties (bitcoin_util PROPERTIES OPTIMIZE_DEPENDENCIES OFF )
41+
3942target_link_libraries (bitcoin_util
4043 PRIVATE
4144 core_interface
You can’t perform that action at this time.
0 commit comments