Index: widelands-1:17~rc2/src/CMakeLists.txt
===================================================================
--- widelands-1:17~rc2.orig/src/CMakeLists.txt	2012-04-13 22:33:58.678928057 -1000
+++ widelands-1:17~rc2/src/CMakeLists.txt	2012-04-13 22:35:09.748114258 -1000
@@ -124,7 +124,11 @@
 target_link_libraries(widelands_all ${GLEW_LIBRARY})
 target_link_libraries(widelands_all ${Boost_LIBRARIES})
 if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
-  target_link_libraries(widelands_all ${EXECINFO_LIBRARY})
+  if (EXECINFO_LIBRARY MATCHES "NOTFOUND")
+    message(STATUS "Warning: cannot find the execinfo library. Let's proceed without it and hope for the best")
+  else(EXECINFO_LIBRARY MATCHES "NOTFOUND")
+    target_link_libraries(widelands_all ${EXECINFO_LIBRARY})
+  endif(EXECINFO_LIBRARY MATCHES "NOTFOUND")
 endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
 
 if (DEFINED WL_EXTRA_LINK_LIBRARIES)
