mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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
|
||||
# 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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue