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
This commit is contained in:
Daniel J. Hofmann 2015-09-04 21:45:51 +02:00
parent 71a00fc01b
commit 7143daf500

View File

@ -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)