~muktupavels/compiz/remove-mate-integration

« back to all changes in this revision

Viewing changes to cmake/CompizCommon.cmake

  • Committer: Alberts Muktupāvels
  • Date: 2019-02-07 13:57:40 UTC
  • mfrom: (4199.2.3 compiz)
  • Revision ID: alberts.muktupavels@gmail.com-20190207135740-m7ra7sg49q8pwqm6
Merge with lp:compiz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required (VERSION 2.8.12)
2
 
 
3
 
include (FindPkgConfig)
 
1
cmake_minimum_required (VERSION 3.10.0)
 
2
 
 
3
if (POLICY CMP0072)
 
4
    cmake_policy (SET CMP0072 OLD)
 
5
endif ()
 
6
 
 
7
if (POLICY CMP0077)
 
8
    cmake_policy (SET CMP0077 NEW)
 
9
endif ()
 
10
 
 
11
find_package (PkgConfig 0.29.1 REQUIRED)
4
12
 
5
13
if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
6
14
    message (SEND_ERROR "Building in the source directory is not supported.")
494
502
 
495
503
#### pkg-config handling
496
504
 
497
 
include (FindPkgConfig)
498
 
 
499
505
function (compiz_pkg_check_modules _var _req)
500
506
    if (NOT ${_var})
501
507
        pkg_check_modules (${_var} ${_req} ${ARGN})