From a18184753db37d1bd51683d3a38d1691a0f094a5 Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Thu, 13 Oct 2016 19:21:02 -0700 Subject: [PATCH] Reduce mimumum cmake version to 2.8 --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ec72e1..9a9611a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,10 @@ # Reference for this file: # https://github.com/forexample/package-example/blob/cf2ea1d6a209fb9eca2ab83fdd0ac15fe4d3e807/Foo/CMakeLists.txt -cmake_minimum_required(VERSION 3.0) -project(libcreate VERSION 1.2.0) +cmake_minimum_required(VERSION 2.8) +project(libcreate) + +set(package_version 1.2.0) find_package(Boost REQUIRED system thread) find_package(Threads REQUIRED) @@ -99,6 +101,7 @@ include(CMakePackageConfigHelpers) # Configure '-config-version.cmake' write_basic_package_version_file( "${version_config}" + VERSION "${package_version}" COMPATIBILITY SameMajorVersion )