Changeset f067d3b in subsurface


Ignore:
Timestamp:
Dec 24, 2017, 1:50:59 PM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
9df88f0
Parents:
726e231d
git-author:
Dirk Hohndel <dirk@…> (12/24/17 13:33:06)
git-committer:
Dirk Hohndel <dirk@…> (12/24/17 13:50:59)
Message:

Fix build for cmake before 3.10

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r795f6e2 rf067d3b  
    77cmake_minimum_required(VERSION 2.8.11)
    88
    9 # don't process generated files
    10 cmake_policy(SET CMP0071 OLD)
     9# don't process generated files - this is new in 3.10 - but
     10# VERSION_GREATER_EQUAL did get added until 3.7
     11if(${CMAKE_VERSION} VERSION_EQUAL "3.10.0" OR ${CMAKE_VERSION} VERSION_GREATER "3.10.0")
     12        cmake_policy(SET CMP0071 OLD)
     13endif()
    1114
    1215# global settings
Note: See TracChangeset for help on using the changeset viewer.