From 544b3ccc16b8eb7d4e28b4a76a690d37f91c3dd3 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 21 Nov 2016 20:51:53 +0400 Subject: [PATCH] FreeBSD also needs libexecinfo for backtrace() --- src/nvcore/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvcore/CMakeLists.txt b/src/nvcore/CMakeLists.txt index be6cdcb..3dfcb5d 100644 --- a/src/nvcore/CMakeLists.txt +++ b/src/nvcore/CMakeLists.txt @@ -38,8 +38,8 @@ ENDIF(NVCORE_SHARED) TARGET_LINK_LIBRARIES(nvcore ${LIBS}) -# On NetBSD backtrace() is provided by libexecinfo, not libc. -if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") +# On NetBSD and FreeBSD backtrace() is provided by libexecinfo, not libc. +if (CMAKE_SYSTEM_NAME MATCHES "NetBSD" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") TARGET_LINK_LIBRARIES(nvcore execinfo) endif()