diff --git a/lib/angelscript/projects/cmake/CMakeLists.txt b/lib/angelscript/projects/cmake/CMakeLists.txt index 702830210..e93971315 100644 --- a/lib/angelscript/projects/cmake/CMakeLists.txt +++ b/lib/angelscript/projects/cmake/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.6) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) cmake_policy(SET CMP0003 NEW) +if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3)) + cmake_policy(SET CMP0048 OLD) +endif() + project(angelscript) option(BUILD_SHARED_LIBS "Build shared library" OFF)