$OpenBSD: patch-lib_base_CMakeLists_txt,v 1.3 2014/11/22 00:13:03 sthen Exp $
--- lib/base/CMakeLists.txt.orig	Mon Nov 17 09:52:21 2014
+++ lib/base/CMakeLists.txt	Fri Nov 21 14:07:10 2014
@@ -43,8 +43,8 @@ add_library(base SHARED ${base_SOURCES})
 
 target_link_libraries(base ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${YAJL_LIBRARIES} mmatch)
 
-if(HAVE_LIBEXECINFO)
-    target_link_libraries(base execinfo)
+if(Backtrace_FOUND)
+  target_link_libraries(base ${Backtrace_LIBRARIES})
 endif()
 
 include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
