Merge pull request #255 from AMDmi3/patch-3

Use libexecinfo on FreeBSD as well
This commit is contained in:
Ignacio 2017-06-06 17:58:17 -07:00 committed by GitHub
commit 923b57db45

View File

@ -38,8 +38,8 @@ ENDIF(NVCORE_SHARED)
TARGET_LINK_LIBRARIES(nvcore ${LIBS}) TARGET_LINK_LIBRARIES(nvcore ${LIBS})
# On NetBSD backtrace() is provided by libexecinfo, not libc. # On NetBSD and FreeBSD backtrace() is provided by libexecinfo, not libc.
if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") if (CMAKE_SYSTEM_NAME MATCHES "NetBSD" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
TARGET_LINK_LIBRARIES(nvcore execinfo) TARGET_LINK_LIBRARIES(nvcore execinfo)
endif() endif()