mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d0acee4083
commit
dc254716cf
2 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
||||||
# Uncomment his to see all commands cmake actually executes
|
# Uncomment his to see all commands cmake actually executes
|
||||||
# set(CMAKE_VERBOSE_MAKEFILE ON)
|
# set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||||
|
|
||||||
project(Subsurface)
|
|
||||||
cmake_minimum_required(VERSION 3.1)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
|
project(Subsurface)
|
||||||
|
|
||||||
# don't process generated files - this is new in 3.10
|
# don't process generated files - this is new in 3.10
|
||||||
if (POLICY CMP0071)
|
if (POLICY CMP0071)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Modified from Subsurface's CMakeLists.txt
|
# Modified from Subsurface's CMakeLists.txt
|
||||||
|
|
||||||
project(smtk2ssrf)
|
|
||||||
cmake_minimum_required(VERSION 3.1)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
|
project(smtk2ssrf)
|
||||||
|
|
||||||
option(COMMANDLINE "Build command line version" OFF)
|
option(COMMANDLINE "Build command line version" OFF)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue