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)
71
71
72
72
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake/module )
73
73
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
+
74
81
#=============================
75
82
# Configurable options
76
83
#=============================
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ add_library(minisketch STATIC EXCLUDE_FROM_ALL
74
74
${PROJECT_SOURCE_DIR} /src/minisketch/src/fields/generic_8bytes.cpp
75
75
)
76
76
77
+ # Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/24058
78
+ set_target_properties (minisketch PROPERTIES OPTIMIZE_DEPENDENCIES OFF )
79
+
77
80
target_include_directories (minisketch
78
81
PUBLIC
79
82
$< 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
36
36
../sync.cpp
37
37
)
38
38
39
+ # Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/24058
40
+ set_target_properties (bitcoin_util PROPERTIES OPTIMIZE_DEPENDENCIES OFF )
41
+
39
42
target_link_libraries (bitcoin_util
40
43
PRIVATE
41
44
core_interface
You can’t perform that action at this time.
0 commit comments