diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 22034be435..893d11a5b7 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 2.4) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 OLD) + cmake_policy(SET CMP0005 OLD) +endif(COMMAND cmake_policy) + set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) project(lyx)