ports/devel/kdevplatform/files/patch-po-CMakeLists.patch
Raphael Kubo da Costa 873b7eca6c Update KDevelop to 4.7.3 and KDevplatform to 1.7.3.
Release announcements:
- https://www.kdevelop.org/kde4/kdevelop-472-released
- https://www.kdevelop.org/news/kdevelop-473-release

The majority of the work here has been done by Adriaan de Groot in kde@'s
experimental area51 repository.

Submitted by:	Adriaan de Groot <groot@kde.org>
2016-04-15 13:40:41 +00:00

12 lines
509 B
Diff

--- po/CMakeLists.txt 2016-01-22 19:05:47.000000000 +0100
+++ po/CMakeLists.txt 2015-02-02 15:19:35.000000000 +0100
@@ -1,3 +1,9 @@
+# The pofiles macro creates in some versions same name targets
+# which since cmake 2.8 leads to target clashes.
+# Hence force the old policy for all po directories.
+# http://public.kitware.com/Bug/view.php?id=12952
+cmake_policy(SET CMP0002 OLD)
+
find_package(Gettext REQUIRED)
if (NOT GETTEXT_MSGMERGE_EXECUTABLE)
MESSAGE(FATAL_ERROR "Please install msgmerge binary")