mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Update CMakeLists.txt
Remove non-compatible compile option.
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_CXX_COMPILER_ID}"
|
|||||||
CACHE STRING "Flags used for linking binaries during coverage builds" FORCE)
|
CACHE STRING "Flags used for linking binaries during coverage builds" FORCE)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS_COVERAGE
|
set(CMAKE_CXX_FLAGS_COVERAGE
|
||||||
"--coverage -fprofile-arcs -ftest-coverage -O0 -fno-default-inline -fprofile-abs-path -fno-inline -fno-inline-small-functions -fno-elide-constructors"
|
# Add when GCC 9 or later is available as part of the default toolchain: -fprofile-abs-path
|
||||||
|
"--coverage -fprofile-arcs -ftest-coverage -O0 -fno-default-inline -fno-inline -fno-inline-small-functions -fno-elide-constructors"
|
||||||
CACHE STRING "Flags used by the C++ compiler during coverage builds" FORCE)
|
CACHE STRING "Flags used by the C++ compiler during coverage builds" FORCE)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_COVERAGE
|
set(CMAKE_EXE_LINKER_FLAGS_COVERAGE
|
||||||
"--coverage -ftest-coverage -lgcov"
|
"--coverage -ftest-coverage -lgcov"
|
||||||
|
|||||||
Reference in New Issue
Block a user