summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/PopplerDefaults.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/PopplerDefaults.cmake b/cmake/modules/PopplerDefaults.cmake
index 6ffac472..b0374cf9 100644
--- a/cmake/modules/PopplerDefaults.cmake
+++ b/cmake/modules/PopplerDefaults.cmake
@@ -8,3 +8,10 @@ set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
# colored output
set(CMAKE_COLOR_MAKEFILE ON)
+# CMake policy #0002: we can have multiple targets with the same name (for the unit tests)
+cmake_policy(SET CMP0002 OLD)
+# CMake policy #0011 (>= 2.6.3): make policy changes (as done here) taking effect for all the tree
+if(POLICY CMP0011)
+ cmake_policy(SET CMP0011 OLD)
+endif(POLICY CMP0011)
+