Avoid cmake warning

This commit is contained in:
Deve 2018-01-26 21:20:33 +01:00
parent aec7ca0ce9
commit 4802c4d11c

View File

@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.6)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0003 NEW)
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
cmake_policy(SET CMP0048 OLD)
endif()
project(angelscript) project(angelscript)
option(BUILD_SHARED_LIBS "Build shared library" OFF) option(BUILD_SHARED_LIBS "Build shared library" OFF)