Commit 8a1074bb authored by Leif Walsh's avatar Leif Walsh

fixed cmake policy CMP0022:

either use all-plain or all-keyword style of target_link_libraries
parent 8a25abb6
...@@ -215,7 +215,7 @@ function(maybe_add_gcov_to_libraries) ...@@ -215,7 +215,7 @@ function(maybe_add_gcov_to_libraries)
foreach(lib ${ARGN}) foreach(lib ${ARGN})
add_space_separated_property(TARGET ${lib} COMPILE_FLAGS --coverage) add_space_separated_property(TARGET ${lib} COMPILE_FLAGS --coverage)
add_space_separated_property(TARGET ${lib} LINK_FLAGS --coverage) add_space_separated_property(TARGET ${lib} LINK_FLAGS --coverage)
target_link_libraries(${lib} gcov) target_link_libraries(${lib} LINK_PRIVATE gcov)
endforeach(lib) endforeach(lib)
endif (USE_GCOV) endif (USE_GCOV)
endfunction(maybe_add_gcov_to_libraries) endfunction(maybe_add_gcov_to_libraries)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment