-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm4_cmake_patch.diff
More file actions
15 lines (15 loc) · 826 Bytes
/
m4_cmake_patch.diff
File metadata and controls
15 lines (15 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5f0c883..6e1172c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,8 +111,8 @@ if(DEFINED ENV{ECE3574_REFERENCE_ENV})
set(GCC_COVERAGE_COMPILE_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
set_target_properties(interpreter PROPERTIES COMPILE_FLAGS ${GCC_COVERAGE_COMPILE_FLAGS} )
set_target_properties(unit_tests PROPERTIES COMPILE_FLAGS ${GCC_COVERAGE_COMPILE_FLAGS} )
- target_link_libraries(unit_tests interpreter gcov)
- target_link_libraries(plotscript interpreter gcov)
+ target_link_libraries(unit_tests interpreter pthread gcov)
+ target_link_libraries(plotscript interpreter pthread gcov)
add_custom_target(coverage
COMMAND ${CMAKE_COMMAND} -E env "ROOT=${CMAKE_CURRENT_SOURCE_DIR}"
${CMAKE_CURRENT_SOURCE_DIR}/scripts/coverage.sh)