From 7143daf500faba0745290680ade71de730b999ab Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Fri, 4 Sep 2015 21:45:51 +0200 Subject: [PATCH] There is no CMAKE_LINKER_FLAGS variable. There really isn't; deal with it. Also, those are not linker flags but instead meant for the compiler. References: - http://www.cmake.org/cmake/help/v3.0/manual/cmake-variables.7.html --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec99fca20..17b57c15d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,7 +118,6 @@ if(CMAKE_BUILD_TYPE MATCHES Debug) if(NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") message(STATUS "adding profiling flags") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -fno-inline") - set(CMAKE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage -fno-inline") endif() endif() if(CMAKE_BUILD_TYPE MATCHES Release)