Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ list(APPEND GRAPPA_ENV
GLOG_v=1
)

# libunwind must go after GLOG library in the linking list to resolve its references.
# We force find_library to use static library because we are putting all dynamics before statics
find_library(UNWIND_FOUND NAMES libunwind.a REQUIRED)
message("UNWIND_FOUND: ${UNWIND_FOUND}")
list(APPEND GRAPPA_STATIC_LIBS ${UNWIND_FOUND})

######################################################################
# Google flags
# in theory, it may come from third-party or from system directories,
Expand Down