CMake: call cmake_minimim_required() before project()

Some policies can affect how project() works.

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
Rolf Eike Beer 2019-03-19 17:14:31 +01:00 committed by Dirk Hohndel
parent d0acee4083
commit dc254716cf
2 changed files with 2 additions and 2 deletions

View file

@ -3,8 +3,8 @@
# Uncomment his to see all commands cmake actually executes
# set(CMAKE_VERBOSE_MAKEFILE ON)
project(Subsurface)
cmake_minimum_required(VERSION 3.1)
project(Subsurface)
# don't process generated files - this is new in 3.10
if (POLICY CMP0071)

View file

@ -1,7 +1,7 @@
# Modified from Subsurface's CMakeLists.txt
project(smtk2ssrf)
cmake_minimum_required(VERSION 3.1)
project(smtk2ssrf)
option(COMMANDLINE "Build command line version" OFF)