diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt index 1d81ca3c6..100207fa8 100644 --- a/interface/vcos/pthreads/CMakeLists.txt +++ b/interface/vcos/pthreads/CMakeLists.txt @@ -33,12 +33,14 @@ set (SOURCES ../generic/vcos_generic_blockpool.c ) +find_library (EXECINFO_LIBRARY execinfo) + if (VCOS_PTHREADS_BUILD_SHARED) add_library (vcos SHARED ${SOURCES}) - target_link_libraries (vcos pthread dl rt) + target_link_libraries (vcos pthread dl rt $<$:${EXECINFO_LIBRARY}>) else () add_library (vcos ${SOURCES}) - target_link_libraries (vcos pthread rt) + target_link_libraries (vcos pthread rt $<$:${EXECINFO_LIBRARY}>) endif ()