From 87f00d2c4c2403dd98d81f7206d35ce20d26c943 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Thu, 2 Jun 2016 16:07:29 +0200 Subject: [PATCH] Restrict CMake version to 2.8.11+ for target_include_directories --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4edfffda0..6f8f87623 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 2.8.8) +cmake_minimum_required(VERSION 2.8.11) +# we depend on 2.8.11 introducing target_include_directories if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE) message(FATAL_ERROR "In-source builds are not allowed.