File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -306,14 +306,14 @@ function(target_code_coverage TARGET_NAME)
306
306
307
307
# If there are static or shared objects to also work with, generate the
308
308
# string to add them here
309
- foreach (LINKED_OBJECT ${target_code_coverage_OBJECTS} )
309
+ foreach (LINK_OBJECT ${target_code_coverage_OBJECTS} )
310
310
# Check to see if the target is a shared object
311
- if (TARGET ${_TARGET } )
312
- get_target_property (LINKED_OBJECT_TYPE ${LINKED_OBJECT } TYPE )
313
- if (${LINKED_OBJECT_TYPE } STREQUAL "STATIC_LIBRARY"
314
- OR ${LINKED_OBJECT_TYPE } STREQUAL "SHARED_LIBRARY" )
311
+ if (TARGET ${LINK_OBJECT } )
312
+ get_target_property (LINK_OBJECT_TYPE ${LINK_OBJECT } TYPE )
313
+ if (${LINK_OBJECT_TYPE } STREQUAL "STATIC_LIBRARY"
314
+ OR ${LINK_OBJECT_TYPE } STREQUAL "SHARED_LIBRARY" )
315
315
set (LINKED_OBJECTS ${LINKED_OBJECTS}
316
- -object=$<TARGET_FILE:${LINKED_OBJECT } >)
316
+ -object=$<TARGET_FILE:${LINK_OBJECT } >)
317
317
endif ()
318
318
endif ()
319
319
endforeach ()
You can’t perform that action at this time.
0 commit comments