From f70d39d23c2b35ce41f4ce061dfea4e9a9c55ecc Mon Sep 17 00:00:00 2001 From: sergey Date: Wed, 9 Sep 2015 11:15:38 +0200 Subject: [PATCH] for cmake3 declare old policy --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24e2778..9fe5d84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required (VERSION 2.6) project (rnnlib) +IF(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR + CMAKE_VERSION VERSION_GREATER "3.0.0") + CMAKE_POLICY(SET CMP0045 OLD) +ENDIF() + execute_process ( COMMAND git submodule update --init boost ) SET ( PREFER_MKL "FALSE" CACHE BOOLEAN "Whether to link against Intel's MKL or OpenBlas" )