Compatibility policy command added

This commit is contained in:
Fernando Cacciola 2008-06-29 20:42:40 +00:00
parent 01bfa639cf
commit faa17da176
1 changed files with 4 additions and 2 deletions

View File

@ -86,8 +86,10 @@ if( NOT CGAL_COMMON_FILE_INCLUDED )
message( FATAL_ERROR "CMAKE_ROOT enviroment variable not set. It should point to the directory where CMake is installed.")
endif()
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
if ( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif()
if ( NOT BUILD_SHARED_LIBS )
if ( WIN32 )
set(BUILD_SHARED_LIBS OFF)