Skip to content

Commit

Permalink
#1495: CMake: do not link libunwind on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 15, 2022
1 parent d72bde1 commit 3651ae5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/link_vt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ function(link_target_with_vt)
target_link_libraries(${ARG_TARGET} PRIVATE gtest)
endif()

target_link_libraries(${ARG_TARGET} PRIVATE unwind)
# FIXME! do the usual ARG_LINK_UNWIND here
if (NOT DEFINED APPLE)
target_link_libraries(${ARG_TARGET} PRIVATE unwind)
endif()

if (NOT ARG_LINK_VT_LIB)
# Unconditionally link the VT library for this target unless linking the VT
Expand Down

0 comments on commit 3651ae5

Please sign in to comment.