Commit dfb0af91 authored by Patrick José Pereira's avatar Patrick José Pereira Committed by Daniel Agar

cmake: Move to a more modern cmake version

CMake 3.12 is a good modern version to help us with the build system
Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent e40293b2
cmake_minimum_required(VERSION 3.2) cmake_minimum_required(VERSION 3.10)
project(QGroundControl LANGUAGES C CXX) project(QGroundControl LANGUAGES C CXX)
...@@ -10,6 +10,8 @@ set(CMAKE_AUTOUIC ON) ...@@ -10,6 +10,8 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON) set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(FeatureSummary)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-Wall -Wextra -Wno-address-of-packed-member) add_compile_options(-Wall -Wextra -Wno-address-of-packed-member)
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment