build: fix cmake version warnings
To fix some cmake dev warnings in recent cmake versions, move cmake_minimum_required() to before project() and set the minimum required cmake version to 3.5. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
37f4affe55
commit
2407923fc0
|
@ -74,9 +74,9 @@ if(NOT CMAKE_CXX_COMPILER_LAUNCHER)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(VBA-M C CXX)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
project(VBA-M C CXX)
|
||||||
|
|
||||||
if(NOT CMAKE_PREFIX_PATH AND (NOT ("$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")))
|
if(NOT CMAKE_PREFIX_PATH AND (NOT ("$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")))
|
||||||
set(CMAKE_PREFIX_PATH "$ENV{CMAKE_PREFIX_PATH}")
|
set(CMAKE_PREFIX_PATH "$ENV{CMAKE_PREFIX_PATH}")
|
||||||
|
|
Loading…
Reference in New Issue