From efa5580a673030a438dc117cd258f6db3dee18ae Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 1 Jan 2020 15:48:05 +0100 Subject: [PATCH] Update CMakeLists.txt Remove non-compatible compile option. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cab5a889b9..b37a1de914 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) else() 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) set(CMAKE_EXE_LINKER_FLAGS_COVERAGE "--coverage -ftest-coverage -lgcov"