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})