From dc254716cf3a7e1289f6c72f7b3b90277d18359e Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Tue, 19 Mar 2019 17:14:31 +0100 Subject: [PATCH] CMake: call cmake_minimim_required() before project() Some policies can affect how project() works. Signed-off-by: Rolf Eike Beer --- CMakeLists.txt | 2 +- smtk-import/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e07cadb1..99576a377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/smtk-import/CMakeLists.txt b/smtk-import/CMakeLists.txt index ff74ea273..369dd80a1 100644 --- a/smtk-import/CMakeLists.txt +++ b/smtk-import/CMakeLists.txt @@ -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)