From c91284b3e1827e332bd34866fa6598d283465cd1 Mon Sep 17 00:00:00 2001 From: Ganael Laplanche Date: Wed, 1 Mar 2017 20:53:56 +0000 Subject: [PATCH] Link to execinfo to fix build on FreeBSD --- src/Main/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index ac47b0ddd..e568aa644 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -164,6 +164,10 @@ if (Qt5Core_FOUND) target_link_libraries(fgfs Qt5::Widgets fglauncher) endif() +if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") + target_link_libraries(fgfs execinfo) +endif() + if (APPLE) install(TARGETS fgfs BUNDLE DESTINATION .) else()