diff options
Diffstat (limited to 'project/cmake/scripts/linux/Macros.cmake')
-rw-r--r-- | project/cmake/scripts/linux/Macros.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/project/cmake/scripts/linux/Macros.cmake b/project/cmake/scripts/linux/Macros.cmake index 7453a1c03d..9d8c00a984 100644 --- a/project/cmake/scripts/linux/Macros.cmake +++ b/project/cmake/scripts/linux/Macros.cmake @@ -14,8 +14,14 @@ function(core_link_library lib wraplib) set(check_arg ${ARGV3}) set(data_arg ${ARGV4}) endif() + + # wrapper has to be adapted in order to support coverage. + if(CMAKE_BUILD_TYPE STREQUAL Coverage) + set(export "") + endif() + if(check_arg STREQUAL export) - set(export ${export} + set(export ${export} -Wl,--version-script=${ARGV3}) elseif(check_arg STREQUAL nowrap) set(export ${data_arg}) |