add cmake_minimum_required to top of CMakeLists.txt and increase minimum Version

This commit is contained in:
looooo
2019-03-06 07:59:35 +01:00
committed by wmayer
parent 3ad9ee6fa4
commit 9e86ff440f

View File

@@ -1,3 +1,4 @@
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(FreeCAD_trunk)
set(PACKAGE_NAME "FreeCAD")
@@ -10,8 +11,6 @@ set(FREECAD_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}")
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
if(POLICY CMP0020)