summaryrefslogtreecommitdiff
blob: 9332701ea92593c6615c944b6193100f2848c303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- po/CMakeLists.txt
+++ po/CMakeLists.txt
@@ -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")