head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2012.07.19.18.05.12;	author mm;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 301181 on 2012-07-19 18:05:12Z by mm

Fix build if binutils are linked to gettext [1]
Depend on libexecinfo

PR:		ports/169996
Reported by:	Volodymyr Kostyrko
@
text
@--- CMake/HPHPFindLibs.cmake.orig	2012-07-15 01:13:18.000000000 +0200
+++ CMake/HPHPFindLibs.cmake	2012-07-19 16:20:37.949508810 +0200
@@@@ -304,6 +284,14 @@@@
 
 if (FREEBSD)
 	FIND_LIBRARY (EXECINFO_LIB execinfo)
+	FIND_LIBRARY (GETTEXT_LIB intl)
+
+	if (NOT EXECINFO_LIB)
+		message(FATAL_ERROR "You need to install libexecinfo")
+	endif()
+	if (NOT GETTEXT_LIB)
+		message(FATAL_ERROR "You need to install gettext (libintl)")
+	endif()
 endif()
 
 #find_package(BISON REQUIRED)
@@@@ -349,6 +337,7 @@@@
 
 if (FREEBSD)
 	target_link_libraries(${target} ${EXECINFO_LIB})
+	target_link_libraries(${target} ${GETTEXT_LIB})
 endif()
 
 	target_link_libraries(${target} ${BFD_LIB})
@
