summaryrefslogtreecommitdiff
path: root/cmake/modules/PopplerDefaults.cmake
blob: b0374cf9a0fb35720b509536d89061fe21579802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# enable the testing facilities
enable_testing()

# put the include directories of the sources before other include paths
# (eg, system includes)
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)