mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 08:43:33 +08:00
cmake git ver depend on index and HEAD
This commit is contained in:
committed by
Lorenz Meier
parent
159b35919a
commit
dcddcdd28e
@@ -1,9 +1,9 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
||||
if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||
add_compile_options(-Qunused-arguments )
|
||||
endif()
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
add_compile_options(-Qunused-arguments)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user