From 87f7238f33f53c63e8aefc148c8b305290937649 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 10 Mar 2016 01:50:12 +0300 Subject: [PATCH] cmake: require 3.1 only for win32 to make it work under ubunty precise Also I [TRIED] wily but ubuntu can't upgrade transparently. TRIED: https://travis-ci.org/azat/libevent/jobs/114924723 Fixes: https://travis-ci.org/libevent/libevent/jobs/114917275 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a62f12bd..98b669f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,11 @@ # cmake -G "Visual Studio 10" .. # start libevent.sln # -cmake_minimum_required(VERSION 3.1 FATAL_ERROR) +if (WIN32) + cmake_minimum_required(VERSION 3.1 FATAL_ERROR) +else() + cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR) +endif() if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release -- 2.40.0