From 0c8237236212a1b754dc8e379ebc9bc57d7f81df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20C=2E=20Morency?= Date: Tue, 24 Jun 2008 16:45:41 -0700 Subject: [PATCH] set cmake policy 2.6 if supported --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fc5153c8..f0aad2df5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,10 @@ cmake_minimum_required(VERSION 2.4.7) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) +if(COMMAND cmake_policy) + cmake_policy(VERSION 2.6) +endif() + set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})