diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d8778f61f..34d438eaf 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -86,7 +86,8 @@ add_subdirectory( unit-test ) # Add a target for running coverage on tests. add_custom_target( coverage - COMMAND ${CMAKE_COMMAND} -P ${MODULE_ROOT_DIR}/tools/cmock/coverage.cmake + COMMAND ${CMAKE_COMMAND} -DCMOCK_DIR=${CMOCK_DIR} + -P ${MODULE_ROOT_DIR}/tools/cmock/coverage.cmake DEPENDS cmock unity core_mqtt_utest core_mqtt_serializer_utest core_mqtt_state_utest WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )